Docsity

Advanced Data Structures and Algorithms Analysis - Notes | CSC 3102, Study notes of Computer Science

Partial preview of the text

Download Advanced Data Structures and Algorithms Analysis - Notes | CSC 3102 and more Study notes Computer Science in PDF only on Docsity!

CSC 3102

Adv Data Structures and

Algorithms Analysis

General Info, Scope,

Textbook, Assessment, …

  • (^) Web page:

http://www.csc.lsu.edu/~rahul/

General Information

  • (^) Ex: Given a list of 100 numbers.

Determine if the number “54” is in the

list

  • (^) Algorithm 1: (Linear Scan)
    • (^) Look at every number in the list
    • (^) Is this the best we can do?
    • (^) Let say, we have few more queries?
    • (^) How much time do we spend for each query?
  • (^) Can we do something smarter?

Algorithms & Data

Structures

Sorted array

  • (^) Say the list is sorted and can be randomly accessed
  • (^) Algorithm 2: (Binary Search)
    • (^) If the list has 1 element, answer directly
    • Else, compare the middle number M in the list
      • (^) Case 1: If equals, answer “YES”
      • (^) Case 2: If M is bigger, search left half
      • (^) Case 3: If M is smaller, search right half
  • (^) Is this necessarily better than

Algorithm 1?

What will we study?

  • (^) Study fundamental data structures, and study their efficiency in terms fo space usage, query times and update times
  • (^) How to design an efficienct algorithm, with proper data structures, to solve a problem
  • (^) How to show that an algorithm is correct
  • (^) How to analyze the performance of an algorithm (or a data structure)
  • (^) Practice on implementing algorithms and data structures – and compare practical efficiencies

Teaching Plan

  • (^) Part I: Basics
    • (^) Sorting/Searching, Growth of Function, Solving Recurrence
  • (^) Part II: Fundamental Data Structures
    • (^) Linked List, Queue, Stack, Tree, Graph, Hash Tables
  • (^) Part III: Graph Algorithms
    • (^) BFS, DFS, Connected Components, …
    • (^) Shortest Path/Spanning Tree Algorithms with Priority Queues

Skills Building ….

  • (^) Abstract thinking in algorithms and efficiency
  • (^) Google, DE Shaw, Yahoo, MS interview questions
  • (^) IOI/ ACM ICPC : Programming Contest Questions
  • (^) Research in Data Structures/Search engines

Textbook & References

  • (^) Textbook:
    • (^) Data Structures and Algorithms in C++ (by Goodrich, Tamassia and Mount)
    • Same book in Java
  • (^) References
    • (^) Introduction to Algorithms (by Cormen et al)
    • (^) Algorithms in C++, by Sedgewick
    • (^) MIT Opencourse

Study Tips

  • (^) Have a fresh mind in lectures & tutorials
  • (^) Don’t be shy, ask questions
  • (^) Try your best to do every assignment
    • (^) Suggestion: Work in groups to exchange high-level ideas, but then do it separately in the end
  • (^) Study textbook, and try the exercises
  • (^) Most importantly: Have fun!