Deck 11: Algorithms and Parallel Formulations
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 11: Algorithms and Parallel Formulations
1
What is the average running time of a quick sort algorithm?
A)o(n)
B)o(n log n)
C)o(n2)
D)o(log n)
A)o(n)
B)o(n log n)
C)o(n2)
D)o(log n)
o(n log n)
2
Odd-even transposition sort is a variation of
A)quick sort
B)shell sort
C)bubble sort
D)selection sort
A)quick sort
B)shell sort
C)bubble sort
D)selection sort
bubble sort
3
What is the average case time complexity of odd-even transposition sort?
A)o(n log n)
B)o(n)
C)o(log n)
D)o(n2)
A)o(n log n)
B)o(n)
C)o(log n)
D)o(n2)
o(n2)
4
Shell sort is an improvement on
A)quick sort
B)bubble sort
C)insertion sort
D)selection sort
A)quick sort
B)bubble sort
C)insertion sort
D)selection sort
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
In parallel Quick Sort Pivot is sent to processes by
A)broadcast
B)multicast
C)selective multicast
D)unicast
A)broadcast
B)multicast
C)selective multicast
D)unicast
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
In parallel Quick Sort each process divides the unsorted list into
A)n lists
B)2 lists
C)4 lists
D)n-1 lists
A)n lists
B)2 lists
C)4 lists
D)n-1 lists
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Time Complexity of DFS is? (V - number of vertices, E - number of edges)
A)o(v + e)
B)o(v)
C)o(e)
D)o(v*e)
A)o(v + e)
B)o(v)
C)o(e)
D)o(v*e)
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
A person wants to visit some places. He starts from a vertex and then wants to visit every vertex till it finishes from one vertex, backtracks and then explore other vertex from same vertex. What algorithm he should use?
A)bfs
B)dfs
C)prim\s
D)kruskal\s
A)bfs
B)dfs
C)prim\s
D)kruskal\s
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Given an array of n elements and p processes, in the message-passing version of the parallel quicksort, each process stores ---------elements of array
A)n*p
B)n-p
C)p/n
D)n/p
A)n*p
B)n-p
C)p/n
D)n/p
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
In parallel quick sort Pivot selecton strategy is crucial for
A)maintaing load balance
B)maintaining uniform distribution of elements in process groups
C)effective pivot selection in next level
D)all of the above
A)maintaing load balance
B)maintaining uniform distribution of elements in process groups
C)effective pivot selection in next level
D)all of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
In execution of the hypercube formulation of quicksort for d = 3, split along -----------dimention to partition sequence into two big blocks, one greater than pivot and other smaller than pivot as shown in diagram
A)first
B)scond
C)third
D)none of above
A)first
B)scond
C)third
D)none of above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Which Parallel formulation of Quick sort is possible
A)shared-address-space parallel formulation
B)message passing formulation
C)hypercube formulation
D)all of the above
A)shared-address-space parallel formulation
B)message passing formulation
C)hypercube formulation
D)all of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
Which formulation of Dijkstra's algorithm exploits more parallelism
A)source-partitioned formulation
B)source-parallel formulation
C)partitioned-parallel formulation
D)all of above
A)source-partitioned formulation
B)source-parallel formulation
C)partitioned-parallel formulation
D)all of above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
In Dijkstra's all pair shortest path each process compute the single-source shortest paths for all vertices assigned to it in SOURCE PARTITIONED FORMULATION
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
A complete graph is a graph in which each pair of vertices is adjacent
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
The space required to store the adjacency matrix of a graph with n vertices is
A)in order of n
B)in order of n log n
C)in order of n squared
D)in order of n/2
A)in order of n
B)in order of n log n
C)in order of n squared
D)in order of n/2
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Graph can be represented by
A)identity matrix
B)adjacency matrix
C)sprse list
D)sparse matrix
A)identity matrix
B)adjacency matrix
C)sprse list
D)sparse matrix
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
to solve the all-pairs shortest paths problem which algorithm's is/are used
A. Floyd's algorithm
B. Dijkstra's single-source shortest paths
C. Prim's Algorithm
D. Kruskal's Algorithm
A)a and c
B)a and b
C)b and c
D)c and d
A. Floyd's algorithm
B. Dijkstra's single-source shortest paths
C. Prim's Algorithm
D. Kruskal's Algorithm
A)a and c
B)a and b
C)b and c
D)c and d
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Simple backtracking is a depth-first search method that terminates upon finding the first solution.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Best-first search (BFS) algorithms can search both graphs and trees.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
A* algorithm is a
A)bfs algorithm
B)dfs algorithm
C)prim\s algorithm
D)kruskal\s algorithm
A)bfs algorithm
B)dfs algorithm
C)prim\s algorithm
D)kruskal\s algorithm
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
identify Load-Balancing Scheme/s
A)asynchronous round robin
B)global round robin
C)random polling
D)all above methods
A)asynchronous round robin
B)global round robin
C)random polling
D)all above methods
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
important component of best-first search (BFS) algorithms is
A)open list
B)closed list
C)node list
D)mode list
A)open list
B)closed list
C)node list
D)mode list
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
A CUDA program is comprised of two primary components: a host and a _____.
A)gpu kernel
B)cpu kernel
C)os
D)none of above
A)gpu kernel
B)cpu kernel
C)os
D)none of above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
The kernel code is dentified by the ________qualifier with void return type
A)_host_
B)__global__
C)_device_
D)void
A)_host_
B)__global__
C)_device_
D)void
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck