Computers and Technology

Think about correctness (20 points) in class we discussed the interval scheduling problem: given a set i of jobs [s, e], where s is the start time and e > s is the end time, select a subset s of i containing a maximal number of non-overlapping jobs. (if you missed class that day, you can find examples and more discussion of this problem in section 1.2 of the text by skeina, available online through the isu library.) here is a proposed algorithm to solve this problem: start with an empty set s while i is nonempty find the job j such that the midpoint (s e) / 2 is earliest remove j from i remove all jobs from i that overlap j add j to the solution s decide whether the algorithm is correct. if you believe it is correct, give an informal explanation for why it works. if you believe it is incorrect, provide a test case on which it fails (counterexample).

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:00, Ltik11900
Write the command that can be used to answer the following questions. (hint: try each out on the system to check your results.) a. find all files on the system that have the word test" as part of their filename. b. search the path variable for the pathname to the awk command. c. find all files in the /usr directory and subdirectories that are larger than 50 kilobytes in size. d. find all files in the /usr directory and subdirectories that are less than 70 kilobytes in size. e. find all files in the / directory and subdirectories that are symbolic links. f. find all files in the /var directory and subdirectories that were accessed less than 60 minutes ago. g. find all files in the /var directory and subdirectories that were accessed less than six days ago. h. find all files in the /home directory and subdirectories that are empty. i. find all files in the /etc directory and subdirectories that are owned by the group bin."
Answers: 1
image
Computers and Technology, 23.06.2019 01:30, winstonbendariovvygn
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
image
Computers and Technology, 23.06.2019 11:00, swelch2010
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
image
Computers and Technology, 23.06.2019 15:00, billlyyyyyyyyyy
Visually impaired individuals generally rely on the for navigation. thus, designers need to ensure that mouse-specific inputs, such as pointing, clicking, and hovering, can be done without a mouse.
Answers: 1
Do you know the correct answer?
Think about correctness (20 points) in class we discussed the interval scheduling problem: given a...

Questions in other subjects:

Konu
Mathematics, 24.06.2019 13:30
Konu
Mathematics, 24.06.2019 13:30