100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CSCI570

Rating
-
Sold
-
Pages
14
Grade
A+
Uploaded on
13-05-2024
Written in
2023/2024

Accounting method - computes the individual cost of each operation, assign different charges to each operation - AC is the amount we charge an operation Adjacency List - a representation of a graph in which each node has a list of nodes that are adjacent to it, i.e. connected to it by an arc. - used for sparse graphs, E=O(V) Adjacency Matrix - A matrix which records the number of direct links between vertices - can answer if vertices are adjacent in O(1) time, just look up index - used for dense graphs, E=omega(V^2) Aggregate method - computes the upper bound T(n) on the total cost of n operations. AC is given by T(n)/n Amortized Cost - -in a sequence of operations the worst case does not occur often in each operation Binary Heap - What is the number of vertices on each level? - power of 2 Binary Heap runtime for - build heap - insert - findMax/findMin - decreaseKey - - build heap: O(n) - insert: O(log n) - findMax/findMin: O(1) - deleteMax/deleteMin(log n) - decreaseKey: O(log n) Binary Search - finds an item in a sorted array by dividing in half and determining which half to look at. recursively do this until the number is found. T(n) = T(n/2)+O(1) O(logn) Binomial heap - findMin - deleteMin - insert - decreaseKey - merge - - findMin: O(1) - deleteMin: O(log n) - insert: O(1) ac - decreaseKey: O(log n) - merge: O(log n)

Show more Read less
Institution
CSCI5
Module
CSCI5









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CSCI5
Module
CSCI5

Document information

Uploaded on
May 13, 2024
Number of pages
14
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

£10.56
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
alice200

Get to know the seller

Seller avatar
alice200 Stanford University
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
142
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions