cs251-week8

cs251-week8 - size-The size of the list is 1 in average C++...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Material covered: - Class Notes - Projects (know how different parts work) Topics: Running Time Worst Case (!) Average Case Best Case Asymptotic Analysis The worst case Very large input sizes n -> infinity Big Oh notation Stacks push, pop implementation with arrays Lists Single Linked Lists Double Linked Lists Implementation Queues FIFO (First In First Out) Implementation using arrays (circular arrays) Hash Tables How the data structure works Insert, remove, lookup Implementation Hash functions for strings Asymptotic Analysis Worst case = O(n) (unlikely if we satisfy assumptions) Average Case = O(1) Assumptions in a hash table 1. Hash functions give even distribution of the lists (more or less the same size) 2. The number of items stored is smaller than the hash table
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: size-The size of the list is 1 in average C++ Classes .h and .cpp files templates Binary Trees Binary Tree Insertion using left and right pointers Heaps Representation of binary trees using an array Heap Characteristics It is a binary tree Key parent < key children Bottom layer is shifted to the left. Other layers are full Implementation of heap insert and heap removemin (see class notes) Heap Sort O(n log n) Binary Search How it works Implementation of a Binary Search Dictionary Reasons why binary search dictionaries are used only in read only tables Check the website for "CS251 Midterm Review Homework" Lab4 is on the website: "Building a Search Engine"...
View Full Document

Page1 / 2

cs251-week8 - size-The size of the list is 1 in average C++...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online