Respan Dataset Explorer
Select one behavior. Every returned turn has one binary label: Present or Absent. Source: final dense boolean release.
5,167,182physical rows
86shards
0.00%qualified row coverage
0.00%qualified cell coverage
turns-00002.parquet:70509
f46c916ced31482834a55af4
turn 11/26gpt-3.5-turbo-0301EnglishPhilippines43 words
degenerate_repetitionAbsentFinal dense release
USER
Which of the following is the tightest bound for the worst-case of delete(el) on a binary search tree with n nodes, including searching for el
a. O(n3)
b. O(1)
c. O(n)
d. O(lg n)
e. O(n lg n)
f. O(n2)
turns-00002.parquet:70510
cdffc8baffc10a25e298c868
turn 12/26gpt-3.5-turbo-0301EnglishPhilippines38 words
degenerate_repetitionAbsentFinal dense release
USER
Which of the following is the tightest bound for the worst-case of heapSort(n) on an array with n values?
a. O(n3)
b. O(n2)
c. O(n)
d. O(n lg n)
e. O(lg n)
f. O(1)
turns-00002.parquet:70511
bc48ceb13d584955688b279b
turn 13/26gpt-3.5-turbo-0301EnglishPhilippines87 words
degenerate_repetitionAbsentFinal dense release
USER
Which data structure is most space efficient to represent k-ary trees for large k?
a. Store the keys in an array according to their breadth-first traversal visit ordering
b. Each parent points to its first child and its children form a linked list
c. all of the other choices are as efficient as each other
d. Nodes have a fixed number of children pointers equal to the maximum degree of the tree
ASSISTANT
b. Each parent points to its first child and its children form a linked list
turns-00002.parquet:70512
cca06d14f24f2bdaebeea06b
turn 14/26gpt-3.5-turbo-0301EnglishPhilippines25 words
degenerate_repetitionAbsentFinal dense release
USER
true or false. The number of non-zero entries in the adjacency matrix representation of an undirected graph is even.
a. True
b. False
turns-00002.parquet:70513
454550c94039788c9bb61fcb
turn 15/26gpt-3.5-turbo-0301EnglishPhilippines23 words
degenerate_repetitionAbsentFinal dense release
USER
A collection of vertices and edges that connect pairs of vertices.
a. Graph
b. Tree
c. Hash Table
d. Linked List
turns-00002.parquet:70514
dbe75bd0cc7fd165301f08c9
turn 16/26gpt-3.5-turbo-0301EnglishPhilippines35 words
degenerate_repetitionAbsentFinal dense release
USER
true or false. In graphs, if all edges incident on a vertex are to be sequentially processed, an adjacency list representation often performs faster than an adjacency matrix representation.
a. True
b. False
turns-00002.parquet:70515
5ea33814da4e5d12b7c96177
turn 17/26gpt-3.5-turbo-0301EnglishPhilippines23 words
degenerate_repetitionAbsentFinal dense release
USER
Performed by Depth-First search when all adjacent vertices have all been visited
a. Backtracking
b. Divide-and-Conquer
c. Collision Resolution
d. Rotation
turns-00002.parquet:70516
d8497ef470e92d218b78825c
turn 18/26gpt-3.5-turbo-0301EnglishPhilippines30 words
degenerate_repetitionAbsentFinal dense release
USER
To compute shortest paths from a start vertex, what are the best adjacency matrix entries for pairs of non-adjacent vertices?
a. 0
b. 1
c. -∞
d. ∞
turns-00002.parquet:70517
667506176a3324811c92cc92
turn 19/26gpt-3.5-turbo-0301EnglishPhilippines18 words
degenerate_repetitionAbsentFinal dense release
USER
true or false. Depth First Search of a graph uses a queue.
a. True
b. False
turns-00002.parquet:70518
56b5f430098d30cdf985f596
turn 20/26gpt-3.5-turbo-0301EnglishPhilippines68 words
degenerate_repetitionAbsentFinal dense release
USER
The number of edges in a graph with n vertices is
a. O(lg n)
b. O(n)
c. O(n2)
d. O(1)
e. O(n lg n)
ASSISTANT
The number of edges can vary between graphs, but at most a complete graph of n vertices will have n*(n-1)/2 edges. Therefore, the tightest bound for the number of edges in a graph with n vertices is O(n2). So, the answer is c. O(n2).