Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Test Bank - Data Structures and Abstractions with Java, 5th edition by Frank M. Carrano, Chapter 1-30

Rating
-
Sold
1
Pages
3
Grade
A+
Uploaded on
15-08-2025
Written in
2025/2026

Test Bank - Data Structures and Abstractions with Java, 5th edition by Frank M. Carrano, Chapter 1-30

Institution
Data Structures
Course
Data Structures

Content preview

Test Bank - Data Structures and Abstractions with Java, 5th edition by Frank M. Carrano,
Chapter 1-30





Permutation - (answer)A reordering of a sequence of n elements A[1..n]. A bijection π:{1..n} → {1..n}.
The sequence 1..n has n! different _______s.



Graph - (answer)A pair G=(V,E) with a finite set of vertices, V, and edges E⊆V×V. There are many
variations (directed, undirected, bipartite, planar, connected, DAG, weighted, Euclidean, sparse, dense)
and several data structures (adjacency matrix, adjacency list, edge list, half-edge, quad-edge) to
represent the different variations. This abstraction has many uses. CLRS B.4



DAG - (answer)A directed, acyclic graph. Used for precedence constraints (do this before that). CLRS p.
1172



Priority queue - (answer)A data structure storing elements with comparable keys that supports insert,
delete, find_min, and sometimes decrease_key.

Used in Heapsort, Prim's MST, and Dijkstra's shortest paths. CLRS 6.1, 23.2, 24.3.



Union find - (answer)A data structure for disjoint sets supporting make_set(x): creates set {x}

find(x): returns a name for the set containing x,

union(x,y): makes union of find(x) ∪ find{y}, eliminating the original sets if they were different.

Useful for connected components. CLRS 21 (not covered).



Fibonacci heap - (answer)A priority queue for n elements that supports insert, delete, and find_min in
O(lg n) time and decrease_key in O(1). Ideal for Prim's MST & Dijkstra's shortest paths. CLRS 19 (not
covered)



Direct access dictionary - (answer)Stores unique keys from the range [0..k] in an array K[0..k], supporting
insert, delete, search in the obvious ways. CLRS 11.1



Hash table - (answer)A table with m slots that stores n keys, indexed by a hash function h:Key-> Slot, to
support Search, Insert, & Delete. Load factor α=n/m. CLRS 11.2

Hash functions should be fast and distribute keys well (simple uniform hashing). 11.3

Written for

Institution
Data Structures
Course
Data Structures

Document information

Uploaded on
August 15, 2025
Number of pages
3
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Free
Get access to the full document:
Download

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
DocsCrestar

Get to know the seller

Seller avatar
DocsCrestar Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
1892
Member since
1 year
Number of followers
0
Documents
2995
Last sold
1 day ago

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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions