3. What Kind of Bear are You? [25 points] You are at your cabin in the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. What Kind of Bear are You? [25 points] You are at your cabin in the deep woods and have taken many pictures of bears - some of them are grizzly bears, some of them are brown bears, and some of them are black bears. You have no problem telling which ones are black bears so you can easily tag all those photos as black bears, put them in a Black Bear folder, and be done with them, but you absolutely cannot remember what allows you to tell whether a photo is of a grizzly bear or a brown bear. Being in the deep woods, you also don't have cell service or internet and so can't run your favorite deep net image classification algorithms. What you can do is look at two photos and say "those are the same species" or "those are different species." You do a bunch of such comparisons and write them all down. You then start with one of the photos and say "let's call this species, species A" and put it in folder A. Your goal is to perfectly place every animal into a folder A (“all of these are species A") or folder B ("all of these are species B") where species B is the other remaining species (though you aren't sure whether A means grizzly bear or brown bear). Given your data, you need to respond with one of three options: • Inconsistent: you have analyzed the pictures in such a way that you can't possibly classify them all into species A and B correctly (for example you said photo 1 and 2 were the same species, photo 2 and 3 were different species, and photos 1 and 3 were the same species). Underspecified: your answers aren't inconsistent, but there is at least one picture that (from the data you've collected so far) could validly be either species A or species B. • Exact answer: your answers aren't inconsistent, and every photo can be only one of species A or B. Describe an algorithm to return which of those three cases the input matches, and if you're in the exact answer case to store the species labels for each photo. Sample Input I: There are 4 images. Image 1 and 2 are different species Image 3 and 4 are the same species Image 1 is "species A" Correct Output: Underspecified Sample Input II: There are 4 images. Image 1 and 2 are different species Image 1 and 4 are the same species Image 3 and 4 are different species Image 1 and 3 are different species Image 1 is "species A" Correct Output: Exact Answer Sample Input III: There are 4 images. Image 1 and 2 are different species Image 1 and 4 are the same species Image 3 and 4 are different species Image 1 and 3 are the same species Image 1 is "species A" Correct Output: Inconsistent (a) Give pseudocode (and/or English) to solve this problem. You will probably want to construct at least one graph, you can assume creating vertices and edges takes O(1) time each, and you can give an English/mathematical description of the vertices and edges (don't worry about code constructs for creating it). Any algorithm from class you use as a black box without modification does not need to be written out in full but you need to specify exactly how to modify it if you make changes to it. (b) In proving that your algorithm is correct you may use known properties of any analysis of any algorithm from class as well as any of the data structures and their properties from 332. (c) For analyzing the running time of your algorithm, assume that you have p photos that are either grizzly or brown bears, s pairs identified as "the same" and d pairs identified as "different." Give a big-O bound in terms of p, s, d. 3. What Kind of Bear are You? [25 points] You are at your cabin in the deep woods and have taken many pictures of bears - some of them are grizzly bears, some of them are brown bears, and some of them are black bears. You have no problem telling which ones are black bears so you can easily tag all those photos as black bears, put them in a Black Bear folder, and be done with them, but you absolutely cannot remember what allows you to tell whether a photo is of a grizzly bear or a brown bear. Being in the deep woods, you also don't have cell service or internet and so can't run your favorite deep net image classification algorithms. What you can do is look at two photos and say "those are the same species" or "those are different species." You do a bunch of such comparisons and write them all down. You then start with one of the photos and say "let's call this species, species A" and put it in folder A. Your goal is to perfectly place every animal into a folder A (“all of these are species A") or folder B ("all of these are species B") where species B is the other remaining species (though you aren't sure whether A means grizzly bear or brown bear). Given your data, you need to respond with one of three options: • Inconsistent: you have analyzed the pictures in such a way that you can't possibly classify them all into species A and B correctly (for example you said photo 1 and 2 were the same species, photo 2 and 3 were different species, and photos 1 and 3 were the same species). Underspecified: your answers aren't inconsistent, but there is at least one picture that (from the data you've collected so far) could validly be either species A or species B. • Exact answer: your answers aren't inconsistent, and every photo can be only one of species A or B. Describe an algorithm to return which of those three cases the input matches, and if you're in the exact answer case to store the species labels for each photo. Sample Input I: There are 4 images. Image 1 and 2 are different species Image 3 and 4 are the same species Image 1 is "species A" Correct Output: Underspecified Sample Input II: There are 4 images. Image 1 and 2 are different species Image 1 and 4 are the same species Image 3 and 4 are different species Image 1 and 3 are different species Image 1 is "species A" Correct Output: Exact Answer Sample Input III: There are 4 images. Image 1 and 2 are different species Image 1 and 4 are the same species Image 3 and 4 are different species Image 1 and 3 are the same species Image 1 is "species A" Correct Output: Inconsistent (a) Give pseudocode (and/or English) to solve this problem. You will probably want to construct at least one graph, you can assume creating vertices and edges takes O(1) time each, and you can give an English/mathematical description of the vertices and edges (don't worry about code constructs for creating it). Any algorithm from class you use as a black box without modification does not need to be written out in full but you need to specify exactly how to modify it if you make changes to it. (b) In proving that your algorithm is correct you may use known properties of any analysis of any algorithm from class as well as any of the data structures and their properties from 332. (c) For analyzing the running time of your algorithm, assume that you have p photos that are either grizzly or brown bears, s pairs identified as "the same" and d pairs identified as "different." Give a big-O bound in terms of p, s, d.
Expert Answer:
Answer rating: 100% (QA)
a Heres an algorithm to solve this problem Explanation To solve this problem we can use the concept of connected components in a graph We will create a graph where each photo is represented as a node ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Read the case study "Southwest Airlines," found in Part 2 of your textbook. Review the "Guide to Case Analysis" found on pp. CA1 - CA11 of your textbook. (This guide follows the last case in the...
-
You and Sam have been in touch since the Palm Beach Business Development Luncheon, and he has expressed interest in your working on his business audit. The two of you make plans to meet for lunch,...
-
Is there any need for long-range plans in today's fast moving environment?
-
Find a power series representation for the function and determine the interval of convergence. 5 |f(x) = 2 1- 4x?
-
On June 28, 1997, in Las Vegas, heavyweight boxers Mike Tyson and Evander Holyfield met for what proved to be a night to remember. During the third round of the fight, a desperate Tyson illegally bit...
-
Given the following project (all times are in days): (a) Draw the network and find the critical path, time, and cost for an all-normal level of project activity. (b) Calculate the crash cost-per-day...
-
Differentiate between Market and Book Value of an asset. Define how the Book Value of an asset is calculated for tax purposes. Explain how the market or sales value of an asset might be estimated.
-
Handy Howard's Incorporated, is a student co-op. Handy Howard uses a perpetual Inventory system, The following transactions (summarized) have been selected for analysis: a. Sold merchandise for cash...
-
Write a recursive function called is_palindrome (string) that takes a string parameter and checks if it is a palindrome ignoring the spaces, if any, and returns True/False. Tips: you can modify the...
-
The two step theory would predict that the strategy of the Democrats will increase the chances that more moderate Republicans will win their primaries. This will lead to more moderate Republicans...
-
CC301 Tax Law T122 / My courses/ ACC301_0122 / General / T122 Practice Workbook Assessment Question 1 Not complete Marked out of 2 Flag question On 1 July 2019 Melissa acquired an antique Camel...
-
Accounting 2. The Diewold Company has two departments, milling and assembly. The company uses a job-order cost system and computes a predetermined overhead rate in each department. The milling...
-
1. Describe each stage of project management including : project planning, scheduling, monitoring and reporting. 2 . Compare and contrast functional and non functional requirements. What are the...
-
Write a C program that will print the pattern as described in the following samples. Sample input Sample output ***** ** * ** 5 8 ******** ** **
-
The following balances were taken from the book of Syringe Berhad on 31 December 2020: Trial Balance as at 31 December 2020 Debit (RM) Credit (RM) Advertising 22,800 Cash 46,446 Cost of sales 536,928...
-
Why do bars offer free peanuts?
-
Give an example of a corporation following a single-product strategy, a related diversification strategy, and an unrelated diversification strategy. What level of performance would you expect from...
-
How would you assess the CEO compensation for both the departed and the new Boeing CEO?
-
Use online resources to find Codes of Ethics for three different businesses. Assess each one in terms of its strengths and weaknesses
-
Explain two ways a fixed-for-fixed currency swap can be valued.
-
Explain the difference between the credit risk and the market risk in a swap.
-
The time-series graph in Figure 24 depicts the number of residents in the United States living in poverty. Why might this graph be considered misrepresentative? Approach Look for any characteristics...
Study smarter with the SolutionInn App