Search This Blog

Showing posts with label Data Structures and Algorithms. Show all posts
Showing posts with label Data Structures and Algorithms. Show all posts

Sunday, October 02, 2011

DATA STRUCTURES AND ALGORITHMS PPT

DATA STRUCTURES AND ALGORITHMS PPT

Instructor

Dr. Sumanta Guha





Course Overview

Based on Introduction to Algorithms (2nd Edition) by Cormen, Leiserson, Rivest and Stein, McGraw Hill, 2001.


  • CLRS Ch. 2: Getting Started (powerpoint)
  • CLRS Ch. 3: Growth of Functions (powerpoint)
  • CLRS Ch. 4: Recurrences (powerpoint)
  • CLRS Ch. 5: Probabilistic Analysis and Randomized Algorithms (powerpoint)
  • CLRS Ch. 6: Heapsort (powerpoint)
  • CLRS Ch. 7: Quicksort (powerpoint)
  • CLRS Ch. 8: Sorting in Linear Time (powerpoint)
  • CLRS Ch. 9: Medians and Order Statistics (powerpoint)
  • CLRS Ch. 11: Hash Tables (powerpoint)
  • CLRS Ch. 13: Red-Black Trees (powerpoint)
  • CLRS Ch. 15: Dynamic Programming (powerpoint)
  • CLRS Ch. 16: Greedy Algorithms (powerpoint)
  • CLRS Ch. 18: B-Trees (powerpoint)
  • CLRS Ch. 24: Single-Source Shortest Paths (powerpoint)
  • CLRS Ch. 26: Maximum Flow (powerpoint)
  • CLRS Ch. 30: Polynomials and the FFT (powerpoint)
  • CLRS Ch. 32: String Matching (powerpoint)
  • CLRS Ch. 33: Computational Geometry (powerpoint)





  • Friday, September 30, 2011

    DATA STRUCTURES AND ALGORITHMS PPT



    DATA STRUCTURE AND ALGORITHMS PPT
     
    The specific topics are given below. The number of lectures devoted to each topic is only an estimate. The actual time spent on each topic may be different from the estimate.
    1. Simple sort methods and performance measurement. (2 lectures).
    2. Data representation methods and linear lists. (7 lectures)
    3. Arrays & matrices. (2 lectures)
    4. Stacks. (2 lectures)
    5. Queues. (1 lecture)
    6. Hashing and LZW compression. (3 lectures)
    7. Binary trees. (4 lectures)
    8. Priority queues. (2 lectures)
    9. Tournament trees. (1 lecture)
    10. Search trees. (2 lectures)
    11. Graphs. (3 lectures)
    12. The greedy method. (3 lectures)
    13. Divide-and-conquer. (3 lectures)
    14. Dynamic programming. (5 lectures)
    15. Backtracking. (2 lectures)
    16. Branch-and-bound. (1 lecture) 

    17. .
    LectureContentReadingSlides
    1 Course overview and insertion sort. Chapters 1 through 3.Powerpoint
    2Insertion sort and practical complexities.Section 3.5.Powerpoint
    3Run-time measurement.Chapter 4.Powerpoint
    4Linear lists.Sections 5.1-5.2.Powerpoint
    5Array representation and array resizing.Section 5.3. Powerpoint
    6Walk through of code for ArrayLinearList.Section 5.3.Powerpoint
    7Iterators. Linked representation of a linear list.Sections 5.3 and 6.1.Powerpoint
    8Walk through of code for Chain. Head nodes, circular lists, doubly linked lists.Sections 6.2 and 6.3.Powerpoint
    9Simulated pointers and available-space lists.Sections 7.1 and 7.2.Powerpoint
    10Row-major and column-major indexing, and special matrices.Sections 8.1, 8.2, and 8.3.Powerpoint
    11Sparse matrices.Section 8.4.Powerpoint
    12Stacks--application to parentheses matching, towers-of-hanoi, railroad car rearrangement, and switchbox routing; array stacks.Sections 9.1, 9.2, 9.5.Powerpoint
    13Array and linked stacks.Section 9.3 and 9.4.Powerpoint
    14Nonapplicability of queues for parantheses matching, towers-of-hanoi, railroad problem with LIFO tracks, and switchbox routing. Application of queues to railroad problem with FIFO tracks, wire routing, and component labeling. Array and linked queues.Sections 10.1-10.4, 10.5.1-10.5.3.Powerpoint
    15Exam.--
    16Dictionaries, linear list representation, and hashing.Sections 11.1, 11.2, 11.3, and 11.5.Powerpoint
    17Hashing and hash table design.Section 11.5.Powerpoint
    18LZW compression.Section 11.6.Powerpoint
    19Trees, binary trees, and properties.Sections 12.1-12.3.Powerpoint
    20Binary tree representation and operations.Sections 12.4 and 12.5.Powerpoint
    21Binary tree traversal methods-- preorder, inorder, postorder, level order. Reconstruction from two ordersSections 12.6-12.8.Powerpoint
    22Online equivalence classes.Section 12.9.2.Powerpoint
    23Application of priority queues to heap sort and machine scheduling. Min and max heaps.Sections 13.1-13.3, 13.6.1, and 13.6.2.Powerpoint
    24Initialization of min and max heaps. Height- and weight-biased leftist trees.Sections 13.4.4 and 13.5.Powerpoint
    25Winner and loser trees and application to k-way merging, run generation, and first-fit bin packing.Chapter 14.Powerpoint
    26Binary search trees and indexed binary search trees.Sections 15.1-15.5.Powerpoint
    27Definition of AVL trees. Graph applications and properties.Sections 16.1, 17.1-17.3.Powerpoint
    28Graph operations and representation.Sections 17.4-17.7.Powerpoint
    29Breadth-first and depth-first search. Application to path finding, connected components, and spanning trees.Sections 17.8 and 17.9.Powerpoint
    30Greedy method and application to bin packing, loading, and knapsack problems.Sections 18.1, 18.2, 18.3.1, and 18.3.2.Powerpoint
    31Exam.--
    32Single source all destinations shortest paths algorithm.Section 18.3.5.Powerpoint
    33Kruskal's and Prim's minimum-cost spanning tree algorithms.Section 18.3.6.Powerpoint
    34Divide and conquer, and application to defective chessboard and min-max problem. Iterative min-max implementation.Sections 19.1 and 19.2.1.Powerpoint
    35Merge sort, natural merge sort, and quick sort.Sections 19.2.2 and 19.2.3.Powerpoint
    36Selection and closest pair of points.Sections 19.2.4 and 19.2.5.Powerpoint
    37Dynamic programming, 0/1 knapsack problem, recursive and iterative solutions.Sections 20.1 and 20.2.1.Powerpoint
    38Matrix multiplication chains, dynamic programming recurrence, recursive solution.Section 20.2.2.Powerpoint
    39Iterative solution to matrix multiplication chains.Section 20.2.2.Powerpoint
    40All pairs shortest paths.Section 20.2.3.Powerpoint
    41Single source shortest paths with negative edge weights.Section 20.2.4.Powerpoint
    42Solution space trees and backtracking.Section 21.1.Powerpoint
    43Branch and bound.Section 22.1.Powerpoint
     

    Friday, August 05, 2011

    Data Structures and Algorithms

    Data Structures and Algorithms


    Course Contents

    This is an introductory level course in Data structures and algorithms, offered by CSE dept, to students of other departments who have been permitted to register for a 'minor'. The course is meant for non-CSE, UG students. CSE/PG students should take one of the other algorithms courses being offered.The syllabus definition given for this course is available from the ASC website. It is copied here for information:
    Introduction to data structures, abstract data types, analysis of algorithms. Creation and manipulation of data structures: arrays, lists, stacks, queues, trees, heaps, hash tables, balanced trees, tries, graphs. Algorithms for sorting and searching, order statistics, depth-first and breadth-first search, shortest paths and minimum spanning tree.
    The course will not go into much excruciating details of various C++ implementation issues of data structures and algorithms; It will not be too top-level either. The course will focus on concepts that are 'broadly useful', not only in CSE but also other disciplines. Mostly we will study "What are some useful data structures and algorithms?”.
    We will do in-class group discussions to design data structures for simpler versions of real-life applications amd programming problems. We will focus on "Why are the data structures and algorithms designed in a given way?". We will study pros-and-cons of various solutions to a given problem (Why is a particular data structure or algorithm "better" than some other?). We will also discuss "How to implement these data structures and algorithms?" in a systematic manner.


    Lecture Schedule

    The course is in Slot 5. There will be two lectures per week, each of 90 minutes duration.
    Most of the readings correspond to the sections in the following Textbooks:
    [GTM]: Data Structures and Algorithms in C++ , by M. Goodrich, R. Tamassia and D. Mount, Seventh Edition.
    [RS]: Algorithms in C++ , by R. Sedgewick, Third Edition.

    NoDateTopicReading/SlidesRemarks
    -05 JanNo class-Registration still ongoing
    -07 JanNo class-Institute: Techfest 2011
    112 JanIntroduction-Need for data structures, their relation with algorithms, ideas of correctnesss, complexity
    214 JanC++ recap[GTM Ch.1]Complete this topic as self study
    319 JanArrays and Linked Lists[RS Ch.3]-
    421 JanList processing[RS Ch.3]-
    -26 JanNo class-Republic Day
    528 JanString processing[RS Ch.3]-
    602 FebComplexity analysis[GTM Ch.3]-
    704 FebQuiz 1-10% weightage; One A4 sheet of handwritten notes allowed
    809 FebStack applications[RS Ch.4]Slides for Stack-Queue
    911 FebQueue and Deque[RS Ch.4]Activity: Implementing a Queue using Stacks
    -16 FebNo class-Institute Holiday
    1018 FebTutorial-Problem-solving on topics covered so far
    -23 FebNo class-Midsem week
    1125 FebMidsem:
    All topics so far
    -30% weightage; One A4 sheet of handwritten notes is allowed.
    Links to:Some Animations, and More animations.
    1202 MarTrees[GTM Ch. 6]-
    1304 MarTree traversal[GTM Ch. 6]Homework 1 to be assigned
    1409 MarQuicksort and Mergesort[RS Ch. 7, 8]Elementary sorting [RS Ch. 6] - self study
    1511 MarPriority Queue[RS Ch. 9]Homework 1 is due on 14th March
    1616 MarHeapsort[RS Ch. 9]Slides for Priority Queues and Heapsort
    1718 MarBinary Search Trees[GTM Ch. 9]Homework 2 to be assigned
    1823 MarAVL Trees[GTM Ch. 9]-
    1925 MarHashing[RS Ch. 14]Homework 2 is due on 28th March
    2030 MarQuiz 2:
    All topics after Midsem
    -10% weightage; One A4 sheet of handwritten notes is allowed.
    2101 AprGraphs: Data Structures[GTM Ch. 12]Homework 3 to be assigned
    2206 AprGraphs: Traversal[GTM Ch. 12]-
    2308 AprShortest Path, MST[GTM Ch. 12]Homework 3 is due on 15th April
    2413 AprTutorial-Problem-solving and Practice Test
    2515 AprClosure-More problem-solving; Last day of classes
    2628 AprEnd-sem:
    All topics
    -40% weightage; One A4 sheet of handwritten notes is allowed.

    Popular Courses

    Resources Higher Education Blogs - BlogCatalog Blog Directory Resources Blogs