COMPSCI 61B Lecture Notes - Lecture 20: Ackermann Function, Priority Queue, Earth-616

54 views9 pages

Document Summary

Project has seemed like a more appropriate level of di culty than previous semesters. Project 2: a chance to see how a design evolves. Next couple of weeks: deriving classic solutions to interesting problems, with an emphasis on how set, map, and priority queue adts are implemented. Today: a chance to see how an implementation of an adt can evolve and how di underlying data structures a ect asymptotic runtime (using formal notation) Goal: given a series of pairwise connectedness declarations, determine if two items are connected transitively. Solvable using a simple adt with cool implementation details. Given a series of pairwise integers connectedness declarations, determine if two integers (or items) are connected. Number of method calls m can be huge. Calls to methods may be interspersed (e. g. can"t assume that we stop getting connect calls after a point) Connecting two things: record every single connecting line in some data structure.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents