
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Algorithms and Data Structures; Subject: Computer Science; University: University of Alabama - Birmingham; Term: Fall 2007;
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

CS303: Algorithms and Data Structures Fall 2007 Assignment 2 (written) Due Date: September 19, 2007 (during lab hours)
a. (10 pts) Suppose your computer can perform 10^9 operations per second. Say you wanted to analyze the genome running a naïve string matching algorithm known to take n^2 operations on inputs of length n. Comment on the feasibility of this.
b. (10 pts) Suppose that by using a more appropriate data structure, your algorithm could perform the same task using only n lg n operations on inputs of length n. What then?
Note: Answers without any proof or workings won’t count! This question is easier than it looks. Don’t be intimidated by the amount of text.