Slide style: Dr. Hornick

Slides:



Advertisements
Similar presentations
Lecture 22, Revision 1 Lecture notes Java code – CodeFromLectures folder* Example class sheets – 4 of these plus solutions Extra examples (quicksort) Lab.
Advertisements

David Luebke 1 6/7/2014 CS 332: Algorithms Skip Lists Introduction to Hashing.
(c) University of Washingtonhashing-1 CSC 143 Java Hashing Set Implementation via Hashing.
CS2852 Week 8, Class 2 Today Tree terminology Non-Binary and Non-Search Trees Tree Traversals (Remaining slides not yet shown) Tomorrow: Quiz Implementing.
CS261 – Recitation 5 Fall Outline Assignment 3: Memory and Timing Tests Binary Search Algorithm Binary Search Tree Add/Remove examples 1.
SE-1021 Software Engineering II Week 8, Class 1 Return Exam Producing UML diagrams automatically in EA Poll Everywhere Files Tomorrow Week 6 HW due (if.
SE-1021 Software Engineering II Week 5, Class 2 Why my computer crashed Layouts Multiple action listeners Single actionPerformed method – distinguishing.
CS-2852 Data Structures Week 10, Class 1 Lab 8 notes Big-O revisited CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick 1.
SE-1021 Software Engineering II Week 5, Class 1 Learning Resources From inner classes to anonymous Inner Classes Additional GUI components Inheritance.
CS-2852 Data Structures Week 5, Class 1 – Testing and Stacks Return Exams & Labs  Package-level access  UML connectors for instance variables Announcement:
CS-2852 Data Structures Week 5, Class 2 – Testing and Stacks Announcement: Lab Demos - 2/3 & 4 on Friday Testing  Definitions, Example  (tentative) Testing.
CS2852 Week 3, Class 2 Today Stacks Queues SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
Collections Data structures in Java. OBJECTIVE “ WHEN TO USE WHICH DATA STRUCTURE ” D e b u g.
CS-2852 Data Structures Week 10, Class 3 Final Announcement re. Final Choosing a Data Structure (Concluded) Poll Everywhere Survey & Results Conclusion.
Sets and Maps Sets Maps The Comparator Interface Sets and Maps in Java Collections API – TreeSet – TreeMap Review for Exam Reading:
SE-1021 Software Engineering II Week 1, Day 2 Attendance Survey results: Use powerpoint Safety Review Preparation for Lab 1 More on Java fundamentals…
SE-1021 Software Engineering II Week 1, Day 2 Attendance Survey results: Use powerpoint Safety Review Preparation for Lab 1 More on Java fundamentals…
CS2852 Week 5, Class 2 Today Queue Applications Circular Queue Implementation Testing SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
Week 9 - Friday.  What did we talk about last time?  Collisions  Open addressing ▪ Linear probing ▪ Quadratic probing ▪ Double hashing  Chaining.
CS2852 Week 7, Class 1 Today Binary Search Tree Implementing add Implementing find Return Quiz 4 (second attempt) Both sections are graded SE-2811 Slide.
CS2852 Week 6, Class 2 Today Class exercise: Implementing a recursive method Binary Search Trees Tomorrow: Quiz at start of lab Implementing a recursive.
CS-2852 Data Structures Week 10, Class 2 Announcement re. Final Choosing a Data Structure CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick 1.
Week 5, Day 2: Decorator Decorators Muddiest Point Tomorrow: Quiz on lab reading: web.msoe.edu/hasker/se2811/labs/5/ SE-2811 Slide design:
CS2852 Week 2, Class 2 Today Big-O runtime analysis Linked Lists Muddiest Point Lab Quiz Includes writing a method from ArrayList class (See next slide)
CS-2852 Data Structures Week 4, Class 1 - Review Review! Thursday Exam I - Review Implementing ArrayList Big-O Iterators – High-level description Linked.
CS2910 Week 6, Lab Today Dictionaries in Python SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
COMP 103 Course Review. 2 Menu  A final word on hash collisions in Open Addressing / Probing  Course Summary  What we have covered  What you should.
CS-2852 Data Structures Week 5, Class 3 – Testing and Recursion Queue Implementing finite queues Binary Search Recursion Tomorrow – Quiz, Lab demos, Lab.
CSC 172 DATA STRUCTURES. MIDTERM REVIEW MIDTERM EXAM 75 min 6 – 10 questions a lot like the quiz questions.
Slide design: Dr. Mark L. Hornick
Hashing & HashMaps CS-2851 Dr. Mark L. Hornick.
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Chapter 19 Java Data Structures
Week 2, Day 1: The Factory Method Pattern
Wednesday Notecards. Wednesday Notecards Wednesday Notecards.
Week 6 - Wednesday CS221.
Week 15 – Monday CS221.
JCF Hashmap & Hashset Winter 2005 CS-2851 Dr. Mark L. Hornick.
ECET 370 HELPS Education Your Life-- ecet370helps.com.
ECET 370 Lessons in Excellence-- ecet370.com. ECET 370 Entire Course (Devry) For more course tutorials visit ECET 370 Week 1 Lab 1 ECET.
ECET 370 Education for Service-- tutorialrank.com
ECET 370 HELPS Education for Service- - ecet370helps.com.
Map interface Empty() - return true if the map is empty; else return false Size() - return the number of elements in the map Find(key) - if there is an.
Road Map CS Concepts Data Structures Java Language Java Collections
structures and their relationships." - Linus Torvalds
SE-1021 Software Engineering II
Week 7, Class 1: The Command Pattern (cont.)
CSE 373: Data Structures and Algorithms
CSE 373: Data Structures and Algorithms
Implementing Hash and AVL
Binary Trees CS-2851 Dr. Mark L. Hornick.
Balanced Binary Search Trees
Binary Search Trees A special case of a Binary Tree
CS2110: Software Development Methods
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1021 Software Engineering II
Polling vs. Interrupts CS2852 4/9/2019
CSC 143 Binary Search Trees.
Polling vs. Interrupts CS2852 4/21/2019
SE-1021 Software Engineering II
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
Week 8, Class 3: Model-View-Controller
SE-1021 Software Engineering II
CS-2852 Data Structures Week 1, Class 1 Data Structures Syllabus
Slide design: Dr. Mark L. Hornick
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
structures and their relationships." - Linus Torvalds
Slide design: Dr. Mark L. Hornick
Presentation transcript:

Slide style: Dr. Hornick CS2852 5/26/2018 CS-2852 Data Structures Yesterday Height of balanced and unbalanced trees Run-time of tree traversals and search Advanced recursive algorithm writing Week 8, Class 2 HW 9 due Sets and Maps Trees as Collections, Sets, and Maps Hash Tables Tonight Lab 7 due TODO - Make practice exam - Memory-map example problem - Prior exam problems - Code-writing problems - Polish test code presentation - Send out grade report Perhaps Later - Using generics - Casting Thing<Circle> to Thing<Shape> or vice-versa For future HW / in-class exercises - Draw detailed memory-map diagrams of linked-lists and ArrayLists CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder

Slide style: Dr. Hornick Quick Quiz! (Ungraded) Why is a Binary Search Tree not appropriate for implementing the List interface? CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick

Slide style: Dr. Hornick CS2852 5/26/2018 Maps and Sets Sets Collection with unique elements Maps A list with set elements as the indexes Non-sequential indexing Objects as indexes Lists vs. Maps: Talk about the specifics of sets looking at the Java 7 API no two elements a, b such that a.equals(b) is true. (And only one null element, at most) Talk about how tree could implement a generic collection and allow duplicate elements. Talk about how uniquness can be useful - e.g. suppose you want to represent the list of addresses affected by a power outage - if someone calls in to report power outage at an address already recorded, you don’t want two entries to maintain. List.set(int i, E el) 0≤i<list.size() list.set(4, “Funky”) Map.set(K k, V v) map.set(“Yoder”, “Funky”) CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder

Sets in Java Collections CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick

Maps in Java Collections CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick

Slide style: Dr. Hornick Hash Tables CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick

Slide style: Dr. Hornick CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick