DOC PREVIEW
UMD CMSC 132 - Midterm 2 Overview

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1Midterm 2 Overview Fawzi EmadChau-Wen TsengDepartment of Computer ScienceUniversity of Maryland, College ParkOverview of Topics1. Data structures2. Graph algorithms3. Searching Search trees Heaps Hash tables Tries4. Sorting5. Compression2Topic – Data StructuresWhy data structures are importantTaxonomy of data structuresLinearHierarchicalGraphMaps & setsData structure examplesRelationship between elementsOperations supportedImpact on efficiencyTopic – Graph AlgorithmsTypes of graphsOperations on graphsTraversalsSpanning treesMinimal spanning treesShortest pathsImplementation methods3Topic – SearchingData structures for searchingBinary search treeHeapsMaps & hashingIndex search trees (tries)Multi-way search treesBalanced search treesImplementation & maintenanceInsert(), delete(), find()Comparing data structuresAdvantages & disadvantagesTopic – SortingApproaches to sortingComparison sortsLinear sortsProperties of sortingImplementing sortingComparing approachesAdvantages & disadvantages4Topic – CompressionApproaches to compressionHuffman encodingAlgorithmImplementationPropertiesMidterm Question FormatsMultiple choice questionsShort 1-sentence answersWrite codeApply & describe algorithms5Multiple Choice Question ExampleSorting is different from searching becauseSorting is more complexSearching is more complexSorting takes more spaceSearching takes more spaceSorting compares two items by size(circle all that apply)Short 1-Sentence Answer ExampleSorting is different from searching because(provide short 1-sentence answer)6Write CodeGiven the following Java code fragment, write code to insert into an unsorted linked list class Node {Object value;Node next;void insert ( Node n ) {… // place your code here}}void BubbleSort ( Comparable [ ] a ) {… // place your code here}Apply & Describe AlgorithmsGiven the following binary search treeDraw tree after adding 9Draw tree after deleting 5Perform postorder traversal510302 25 457Apply & Describe AlgorithmsGiven the following graphApply depth-first search, starting at 1Apply breadth-first search, starting at 1Apply Djikstra’s algorithm, starting at 1Apply Kruskal’s algorithmShow


View Full Document

UMD CMSC 132 - Midterm 2 Overview

Documents in this Course
Notes

Notes

8 pages

Recursion

Recursion

12 pages

Sorting

Sorting

31 pages

HTML

HTML

7 pages

Trees

Trees

19 pages

HTML

HTML

18 pages

Trees

Trees

19 pages

Honors

Honors

19 pages

Lecture 1

Lecture 1

11 pages

Quiz #3

Quiz #3

2 pages

Hashing

Hashing

21 pages

Load more
Download Midterm 2 Overview
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Midterm 2 Overview and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Midterm 2 Overview 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?