



























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























































I (^) Lecturer: Russell Martin, Room 319 Ashton Building, email: Russell.Martin (at) liverpool.ac.uk I (^) Lectures: Monday (2pm), Thursday (11am) and Friday (3pm) I (^) Assessment: 2 class tests (20%) and final exam (80%)
I (^) Course web page: http://www.csc.liv.ac.uk/∼martin/teaching/comp202/
More specifically, by the end of this module a student should
I (^) An algorithm is a sequence of steps for performing a task in a finite amount of time.
I (^) An algorithm is a sequence of steps for performing a task in a finite amount of time.
I (^) What algorithms do you already know?
I (^) For computational algorithms, we use data structures to store, access, and manipulate data. I (^) What data structures have you encountered in the past?
I (^) For computational algorithms, we use data structures to store, access, and manipulate data. I (^) What data structures have you encountered in the past?
Our fundamental interest is to design “good” algorithms which utilize efficient data structures. In this context “good” (typically) means fast in a way to be clarified during this course.
Suppose you have a list of some type (integers, names, etc.), and you want to search through the list to see if some element is already in the list. How can you do this search? Moreover, how can you do it efficiently?
Relevant questions I (^) How is the list stored?
Suppose you have a list of some type (integers, names, etc.), and you want to search through the list to see if some element is already in the list. How can you do this search? Moreover, how can you do it efficiently?
Relevant questions I (^) How is the list stored? I (^) Is it sorted or not? If the list is sorted, it’s (often) easier to perform the search.
Suppose you have a list of some type (integers, names, etc.), and you want to search through the list to see if some element is already in the list. How can you do this search? Moreover, how can you do it efficiently?
Relevant questions I (^) How is the list stored? I (^) Is it sorted or not? If the list is sorted, it’s (often) easier to perform the search. I (^) If it’s not sorted, should we sort it first? I (^) Are we going to be doing this search operation many times? (Then we might want to sort the list first, if necessary.)
Suppose you have a list of some type (integers, names, etc.), and you want to search through the list to see if some element is already in the list. How can you do this search? Moreover, how can you do it efficiently?
Relevant questions I (^) How is the list stored? I (^) Is it sorted or not? If the list is sorted, it’s (often) easier to perform the search. I (^) If it’s not sorted, should we sort it first? I (^) Are we going to be doing this search operation many times? (Then we might want to sort the list first, if necessary.) I (^) Are we going to be updating (i.e. adding/deleting items from) the list?
I (^) Primary interest : Running time (time-complexity) of the algorithm and the operations on data structures.
I (^) Secondary interest : Space (or “memory”) usage (space-complexity).
I (^) Primary interest : Running time (time-complexity) of the algorithm and the operations on data structures.
I (^) Secondary interest : Space (or “memory”) usage (space-complexity).
This course focuses on the mathematical design and analysis of algorithms and their associated data structures, utilizing relevant mathematical tools to do so.