Bt0080 - Fundamentals Of Algorithms

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Dsouzaanil
D
Dsouzaanil
Community Contributor
Quizzes Created: 1 | Total Attempts: 288
| Attempts: 289
SettingsSettings
Please wait...
  • 1/75 Questions

    All solutions to the 8-queens problem can be represented as ………………. where xi is the column on which queen i is placed.

    • 8-tuples (x1…… x8),
    • 12-tuples (x1…… x12),
    • 16-tuples (x1…… x16),
    • 4-tuples (x1…… x4),
Please wait...
Bt0080 - Fundamentals Of Algorithms - Quiz
About This Quiz

A set of rules to be followed during calculations or other problem solving operations is what defines algorithm. Computational complexity for instance defines clearly the major concern of algorithm, which is efficiency, which involves how much time and memory required to solve problem. Bt0080 - Fundamentals of algorithms will help you understand what algorithm is all about.


Quiz Preview

  • 2. 

    A feasible solution that either maximizes or minimizes a given objective function is called an …………..

    • Optimal solution

    • Local solution

    • Exact solution

    • Correct solution correct solution correct solution

    Correct Answer
    A. Optimal solution
    Explanation
    An optimal solution refers to a feasible solution that either maximizes or minimizes a given objective function. It is the best possible solution among all feasible solutions and provides the highest or lowest value for the objective function, depending on whether it is a maximization or minimization problem. Therefore, the correct answer is "optimal solution."

    Rate this question:

  • 3. 

    The travelling salesperson problem is to find a tour of ……………... and principle of …………….. holds.

    • Maximum cost, optimality

    • Maximum cost, generality

    • Minimum cost, generality

    • Minimum cost ,optimality

    Correct Answer
    A. Minimum cost ,optimality
    Explanation
    The travelling salesperson problem is a well-known optimization problem in computer science. It involves finding the shortest possible route that a salesperson can take to visit a given set of cities and return to the starting city. The "minimum cost" refers to finding the tour with the lowest total distance or cost. The "optimality" principle suggests that the solution obtained is the best possible solution, meaning it cannot be further improved upon. Therefore, the correct answer is "minimum cost, optimality."

    Rate this question:

  • 4. 

    An algorithm must terminate after a finite number of steps is known as

    • Definiteness

    • Finiteness

    • Correctness

    • Effectiveness

    Correct Answer
    A. Finiteness
    Explanation
    Finiteness refers to the property of an algorithm that ensures it will terminate after a finite number of steps. This means that the algorithm will eventually reach an end point and produce a result, rather than running indefinitely or getting stuck in an infinite loop. Finiteness is an essential characteristic of algorithms as it guarantees that they can be executed within a reasonable amount of time and resources.

    Rate this question:

  • 5. 

    A procedure, which can call …………., is said to be ………….. procedure/ algorithm

    • Itself, recursive

    • By other program, recursive

    • Itself, non-recursive

    • Some other function , recursive

    Correct Answer
    A. Itself, recursive
    Explanation
    A procedure that can call itself is referred to as a recursive procedure or algorithm. This means that the procedure includes a statement that calls itself during its execution. By doing so, it allows for repetitive execution of a specific task until a certain condition is met. This recursive approach is often used to solve problems that can be broken down into smaller, similar subproblems.

    Rate this question:

  • 6. 

    When the sequence of execution of instructions is to be the same as the sequence in which instruction are written in program text is known as ………..

    • Direct sequencing

    • Indirect sequencing

    • Direct selection

    • Indirect selection

    Correct Answer
    A. Direct sequencing
    Explanation
    Direct sequencing refers to the execution of instructions in the same order as they are written in the program text. This means that the computer will execute each instruction one after the other, following the exact sequence specified by the programmer. This ensures that the program behaves as intended and produces the desired output. In contrast, indirect sequencing or indirect selection allows for conditional branching or jumping to different parts of the program based on certain conditions.

    Rate this question:

  • 7. 

    Merge sort is an example of

    • Divide and conquer

    • Decrease and conquer

    • Space and time tradeoff

    • Greedy method

    Correct Answer
    A. Divide and conquer
    Explanation
    Merge sort is an example of the divide and conquer algorithmic technique. This technique involves breaking down a problem into smaller subproblems, solving them independently, and then combining the solutions to obtain the final result. In the case of merge sort, the algorithm divides the input array into two halves, recursively sorts each half, and then merges the sorted halves to produce a sorted output. This approach of dividing the problem into smaller subproblems and solving them individually before combining the results is the essence of the divide and conquer strategy.

    Rate this question:

  • 8. 

    In branch-and-bound terminology, a BFS-like state space search will be called ……….

    • FIFO

    • LIFO

    • LILO

    • FILO

    Correct Answer
    A. FIFO
    Explanation
    In branch-and-bound terminology, a BFS-like state space search will be called FIFO. This is because BFS (breadth-first search) explores all the neighboring nodes of the current node before moving on to the next level of nodes. Similarly, in a FIFO (first-in, first-out) queue, the elements that are added first are the first ones to be removed. Therefore, a BFS-like state space search can be referred to as FIFO.

    Rate this question:

  • 9. 

    A tree in which one vertex (called the root) is distinguished from all the other vertices, is called a …………....

    • Null tree

    • Rooted tree

    • Graph

    • Forest

    Correct Answer
    A. Rooted tree
    Explanation
    A tree in which one vertex is distinguished as the root is called a rooted tree. In a rooted tree, all other vertices are connected to the root by edges, and there is a unique path from the root to any other vertex in the tree. This distinction of the root vertex allows for a hierarchical structure in the tree, making it easier to navigate and analyze.

    Rate this question:

  • 10. 

    Knapsack Problem is an example of

    • Divide and conquer technique

    • Greedy technique

    • Decrease and conquer technique

    • Time and space tradeoff

    Correct Answer
    A. Greedy technique
    Explanation
    The Knapsack Problem is an example of the greedy technique because it involves making locally optimal choices at each step in order to find the overall optimal solution. In this problem, we are given a set of items with different weights and values, and we need to determine the most valuable combination of items that can fit into a knapsack with a limited weight capacity. The greedy approach involves selecting the items with the highest value-to-weight ratio first, without considering the future consequences. This technique may not always provide the globally optimal solution, but it often yields good results in practice.

    Rate this question:

  • 11. 

    For many problems it is possible to easily observe that a lower bound ………………..to n exists where n is the number of input to the problem

    • Descendent

    • Identical

    • Differ

    • Local

    Correct Answer
    A. Identical
    Explanation
    The word "identical" is the correct answer because it means "exactly the same" or "not different." In the given statement, it is mentioned that a lower bound exists for many problems, which implies that the lower bound is the same as the number of inputs to the problem (n). Therefore, the lower bound and n are identical or the same.

    Rate this question:

  • 12. 

    A multistage graph G = (V,E) is a ……………….

    • Undirected graph

    • Directed graph

    • Directed as well as undirected graph

    • Type of tree

    Correct Answer
    A. Directed graph
    Explanation
    A multistage graph is a directed graph where the vertices are divided into multiple stages and there are directed edges between the stages. In this type of graph, the edges only go from one stage to the next, indicating a specific direction of flow. Therefore, the correct answer is a directed graph.

    Rate this question:

  • 13. 

    The estimated no. of unbounded nodes is only ………... of the total no of nodes in the 8 queen state space tree.

    • 3.34%

    • 2.34%

    • 1%

    • 4.34%

    Correct Answer
    A. 2.34%
    Explanation
    The estimated number of unbounded nodes is only 2.34% of the total number of nodes in the 8 queen state space tree. This means that the majority of nodes in the state space tree are bounded, meaning they have a limited number of possible moves or solutions. The small percentage of unbounded nodes suggests that there are only a few nodes in the state space tree that have an infinite number of possible moves or solutions.

    Rate this question:

  • 14. 

    An edge having the same vertex as both its end vertices called a ……………

    • Self-loop

    • Open loop

    • Closed vertex

    • Open vertex Open vertex Open vertex

    Correct Answer
    A. Self-loop
    Explanation
    A self-loop is an edge in a graph that connects a vertex to itself. In this case, the edge has the same vertex as both of its end vertices, making it a self-loop.

    Rate this question:

  • 15. 

    A closed walk running through every edge of the graph G exactly once is called an ………….

    • Euler path

    • Euler line

    • Euler forest

    • Euler tree

    Correct Answer
    A. Euler line
    Explanation
    A closed walk running through every edge of the graph G exactly once is called an Euler path. An Euler line is not a term used in graph theory. Euler forest and Euler tree are also not the correct terms to describe a closed walk running through every edge of the graph exactly once.

    Rate this question:

  • 16. 

    Backtracking algorithms determine problem's solutions by …………………... searching the solution space for the given problem instance

    • Systematically

    • Logically

    • Periodically

    • Non- systematically

    Correct Answer
    A. Systematically
    Explanation
    Backtracking algorithms determine problem's solutions by systematically searching the solution space for the given problem instance. This means that the algorithm explores all possible solutions in a structured and organized manner, considering each option and backtracking when necessary. The algorithm follows a systematic approach to find the solution, ensuring that all possible paths are explored and evaluated before reaching the final solution.

    Rate this question:

  • 17. 

    Each internal node in binary tree represents a …………

    • Comparison

    • Differentiation

    • Multiplication

    • Division

    Correct Answer
    A. Comparison
    Explanation
    Each internal node in a binary tree represents a comparison. In a binary tree, each node has at most two children, a left child and a right child. The internal nodes are the nodes that have at least one child. These nodes are used to compare values and determine the direction in which the tree is traversed. The comparison can be based on various criteria such as the value of the node or any other attribute associated with it. Hence, the internal nodes in a binary tree represent a comparison.

    Rate this question:

  • 18. 

    If A[i] is less than A[j], then the algorithm proceeds down the …………... of the tree; otherwise, it proceeds down the …………….

    • Depth, height

    • Right branch., left branch

    • Left branch, right branch.

    • Right branch, depth

    Correct Answer
    A. Left branch, right branch.
    Explanation
    The explanation for the given correct answer is that if A[i] is less than A[j], it means that the algorithm should proceed down the left branch of the tree. On the other hand, if A[i] is not less than A[j], the algorithm should proceed down the right branch of the tree. Therefore, the correct sequence is "left branch, right branch."

    Rate this question:

  • 19. 

    Let g be a sub graph of a graph G. Suppose I(g) and I(G) are the incidence matrices of g and G respectively. Then I(g) is called a ……………... of I(G)

    • Sub matrix

    • Linked matrix

    • Simple matrix

    • Both b and c

    Correct Answer
    A. Sub matrix
    Explanation
    In graph theory, an incidence matrix represents the relationships between vertices and edges in a graph. In this question, we are given a subgraph g of a graph G, and we need to determine the term used to describe the incidence matrix of g (denoted as I(g)) in relation to the incidence matrix of G (denoted as I(G)). The correct term is "sub matrix" because I(g) is a matrix that is obtained by selecting a subset of rows and columns from I(G), representing the vertices and edges of the subgraph g. Therefore, I(g) is a sub matrix of I(G).

    Rate this question:

  • 20. 

    It may be noted that the …………..condition is a special case of……………………

    • FINITENESS , EFFECTIVENESS

    • Definiteness, effectiveness

    • Finiteness, definiteness

    • Correctness, finiteness

    Correct Answer
    A. FINITENESS , EFFECTIVENESS
    Explanation
    The given correct answer is "FINITENESS, EFFECTIVENESS". This answer suggests that the condition being referred to is both finite and effective. The term "finiteness" implies that the condition has a definite and limited scope or duration. The term "effectiveness" suggests that the condition is capable of producing the desired or intended result. Therefore, the condition being discussed in this question is both finite in its scope and effective in achieving its purpose.

    Rate this question:

  • 21. 

    The worst case efficiency for quick sort is

    • O(n2).

    • O(2n).

    • O(log n2).

    • Nlog n

    Correct Answer
    A. O(n2).
    Explanation
    The worst case efficiency for quicksort is O(n^2) because in the worst case scenario, the pivot chosen for partitioning the array is either the smallest or largest element. This results in one partition having n-1 elements and the other partition having 0 elements. This unbalanced partitioning leads to a time complexity of O(n^2) as each partition needs to be recursively sorted.

    Rate this question:

  • 22. 

    A linear graph (or simply a graph) G = (V,E) consists of a set of objects V = {v1,v2…..} called …………..., and another set E = {e1,e2…}, whose elements are called ………..

    • Vertices, edges

    • Node , path

    • Weight , direction

    • Vertices , weight

    Correct Answer
    A. Vertices, edges
    Explanation
    In a linear graph, the objects are called vertices and the connections between them are called edges. Therefore, the correct answer is "Vertices, edges".

    Rate this question:

  • 23. 

     A process is a ………….. actually being carried out to solve a problem.

    • Sequence of activities

    • Step-by step procedure

    • Flow of information

    • Both b and c

    Correct Answer
    A. Sequence of activities
    Explanation
    A process refers to a series of activities that are being carried out to solve a problem. It involves a step-by-step procedure and a flow of information. Therefore, the correct answer is "both b and c" as a sequence of activities encompasses both a step-by-step procedure and a flow of information.

    Rate this question:

  • 24. 

    A D-search-like state space search will be called ………….

    • FIFO

    • LIFO

    • FILO

    • LILO

    Correct Answer
    A. LIFO
    Explanation
    A D-search-like state space search refers to a depth-first search algorithm, where the search explores a path as far as possible before backtracking. In this type of search, the last node that is discovered is the first one to be expanded. This follows the Last In, First Out (LIFO) principle, where the most recently added item is the first one to be removed. Therefore, LIFO is the correct answer for this question.

    Rate this question:

  • 25. 

    A collection of trees is called a . …….

    • A collection of trees is called a forest.

    • Almost complete binary tree

    • Binary tree

    • Parser tree

    Correct Answer
    A. A collection of trees is called a forest.
    Explanation
    The correct answer is "A collection of trees is called a forest." This is because a forest is a term used to describe a grouping or collection of trees. It is commonly used in ecology and forestry to refer to a large area of land covered with trees.

    Rate this question:

  • 26. 

    A connected graph G is a Euler graph if and only if it can be decomposed into ……………

    • Circuits.

    • Multiple path

    • Multiple vertices

    • Forest

    Correct Answer
    A. Circuits.
    Explanation
    A connected graph G is a Euler graph if and only if it can be decomposed into circuits. This means that there exists a path that starts and ends at the same vertex, and visits every edge exactly once. If a graph can be decomposed into circuits, it satisfies the necessary condition for being an Euler graph. Therefore, the correct answer is circuits.

    Rate this question:

  • 27. 

    A vertex v is said to be an ……………. vertex if the out degree of v and the indegree of v are equal to zero.

    • Connected

    • Isolated

    • Directed

    • Pendent

    Correct Answer
    A. Isolated
    Explanation
    An isolated vertex is a vertex that has no edges connecting it to any other vertex in a graph. In this context, a vertex v is considered an isolated vertex if both its out degree (the number of edges leaving v) and its indegree (the number of edges entering v) are zero. This means that the vertex v is completely disconnected from the rest of the graph, making it an isolated vertex.

    Rate this question:

  • 28. 

    Backtracking algorithms for the knapsack problem can be arrived at using either of these two state space trees. What are they?

    • Tuple size, input size

    • Fixed tuple size formulation, variable tuple size formulation

    • Input size, output size

    Correct Answer
    A. Fixed tuple size formulation, variable tuple size formulation
    Explanation
    Backtracking algorithms for the knapsack problem can be arrived at using either fixed tuple size formulation or variable tuple size formulation. The fixed tuple size formulation refers to a scenario where the number of items in the knapsack is fixed, and the algorithm tries to find the optimal combination of items. On the other hand, the variable tuple size formulation allows for flexibility in the number of items in the knapsack, and the algorithm adjusts the combination accordingly. Both formulations provide different approaches to solving the knapsack problem using backtracking.

    Rate this question:

  • 29. 

    Before executing Merge Sort, the n elements should be placed in a [1:n].

    • [1:n]

    • [2n:n]

    • [1:2n]

    • [2:n]

    Correct Answer
    A. [1:n]
    Explanation
    The given answer [1:n] is correct because in Merge Sort, the array is divided into smaller subarrays until each subarray contains only one element. Then, the subarrays are merged back together in a sorted manner. So, [1:n] represents the initial state of the array before any division or merging has occurred, indicating that all the elements are in their original order.

    Rate this question:

  • 30. 

    Graph theory was born in ………….. with Euler’s famous paper

    • 1736

    • 1730

    • 1836

    • 1730

    Correct Answer
    A. 1736
    Explanation
    Graph theory was born in 1736 with Euler's famous paper.

    Rate this question:

  • 31. 

    Two graphs H1 = (V1, E1) and H2 = (V2, E2) are said to be …………….. if we can rename the vertices in V2 in such a manner that after renaming, the graph H1 and H2 look ………….

    • Isomorphic, identical

    • Isomorphic, different

    • Tree, identical

    • Tree, different

    Correct Answer
    A. Isomorphic, identical
    Explanation
    Two graphs H1 and H2 are said to be isomorphic if we can rename the vertices in V2 in such a manner that after renaming, the graph H1 and H2 look identical. This means that the graphs have the same structure, with the same number of vertices and edges, and the edges are connected in the same way.

    Rate this question:

  • 32. 

    A graph is also called a ………..

    • Linear complex

    • 1 – complex

    • One-dimensional complex

    • Linear complex, or a 1 – complex, or a one-dimensional complex

    Correct Answer
    A. Linear complex, or a 1 – complex, or a one-dimensional complex
    Explanation
    A graph is referred to as a linear complex, a 1 – complex, or a one-dimensional complex. These terms all describe the same concept, which is a graph that consists of a set of vertices and edges connecting the vertices in a linear or one-dimensional manner. This means that the graph can be represented as a straight line or a sequence of connected points.

    Rate this question:

  • 33. 

    F: R -> R where, R is the set of real numbers. A function f: R -> R is said to be monotonically increasing if for x, y є R and …………. we have ………...

    • X ≤ y, f(x) ≤ f(y)

    • X ≤ y, f(x) > f(y)

    • X > y, f(x) > f(y)

    • X >y, f(x) ≤ f(y)

    Correct Answer
    A. X ≤ y, f(x) ≤ f(y)
    Explanation
    A function f: R -> R is said to be monotonically increasing if for any two real numbers x and y, if x is less than or equal to y, then f(x) is less than or equal to f(y). This means that as the input values increase, the output values also increase or stay the same.

    Rate this question:

  • 34. 

    To search the travelling salesperson state space tree, we need to define a …………... and two other functions č(.) and u(.) such that (r) ≤ c(r) ≤ u(r) for all nodes r

    • Cost function c (.), (r) ≤ c(r) ≤ u(r)

    • Copy function, (r) ≤ c(r) ≤ u(r)

    • Cost function c (.), (r) > c(r) > u(r)

    • Copy function, (r) > c(r) > u(r)

    Correct Answer
    A. Cost function c (.), (r) ≤ c(r) ≤ u(r)
    Explanation
    In order to search the travelling salesperson state space tree, it is necessary to define a cost function c(.) and two other functions č(.) and u(.) such that (r) ≤ c(r) ≤ u(r) for all nodes r. This means that the cost function c(.) should have a lower bound (r) and an upper bound u(r), ensuring that the cost of reaching a node falls within this range. By defining the cost function in this way, it allows for an effective search of the state space tree to find the optimal solution.

    Rate this question:

  • 35. 

    In a graph, when does Dijkstra's algorithm stop?

    • When the shortest path to the destination vertex is found

    • When all the vertices in the graph are included to the path

    • When the vertices together form a cycle

    • When the minimum spanning tree is constructed

    Correct Answer
    A. When the shortest path to the destination vertex is found
    Explanation
    Dijkstra's algorithm stops when the shortest path to the destination vertex is found because the algorithm works by continuously updating the distances from the source vertex to all other vertices in the graph. It explores the neighboring vertices and chooses the one with the smallest distance as the next vertex to visit. This process continues until the algorithm reaches the destination vertex. Once the shortest path to the destination vertex is determined, there is no need to continue exploring other vertices, so the algorithm stops.

    Rate this question:

  • 36. 

    The cost c(.) is such that the solution node with least c(.) corresponds to a ………………….. in G.

    • Shortest tour

    • Longest tour

    • Cost calculator

    • Cost definition

    Correct Answer
    A. Shortest tour
    Explanation
    The cost function c(.) is designed in such a way that the solution node with the least cost corresponds to the shortest tour in graph G. This means that the cost assigned to each possible tour in G is calculated in a manner that the tour with the lowest cost is identified as the shortest tour.

    Rate this question:

  • 37. 

    State weather the following statement is true or false for Hamiltonian Circuit and Path 1).every connected graph has a Hamiltonian circuit. 2). every graph that has a Hamiltonian circuit also has a Hamiltonian path. 3). A given graph may contain more than one Hamiltonian circuit

    • 1. True, 2. true, 3. true

    • 1. true, 2. false, 3.true

    • 1. false, 2. false, 3. false

    • 1. true, 2. true, 3. false

    Correct Answer
    A. 1. True, 2. true, 3. true
    Explanation
    1) Every connected graph has a Hamiltonian circuit. This is true because a Hamiltonian circuit is a path that visits each vertex exactly once and returns to the starting vertex, and in a connected graph, it is always possible to find such a path that visits all vertices.
    2) Every graph that has a Hamiltonian circuit also has a Hamiltonian path. This is also true because a Hamiltonian circuit is a special case of a Hamiltonian path, where the path starts and ends at the same vertex.
    3) A given graph may contain more than one Hamiltonian circuit. This is true because there can be multiple paths that visit each vertex exactly once and return to the starting vertex, resulting in different Hamiltonian circuits.

    Rate this question:

  • 38. 

    State weather the following statement is true or false for Recursion 1) A procedure, which can call itself. 2). There must be conditions within the definition of a recursive procedure 3). The arguments in successive calls should not be simpler.

    • 1. True, 2. true, 3. true

    • 1. true, 2. false, 3.true

    • 1. false, 2. false, 3. false

    • 1. true, 2. true, 3. false

    Correct Answer
    A. 1. true, 2. true, 3. false
    Explanation
    A recursive procedure is a procedure that calls itself. This makes statement 1 true. In order for a recursive procedure to work correctly, there must be conditions or base cases within its definition that determine when the recursion should stop. This makes statement 2 true. However, the arguments in successive calls of a recursive procedure should generally be simpler in order to make progress towards the base case. This makes statement 3 false.

    Rate this question:

  • 39. 

    If f(n) is the time for some algorithm, then we write f(n)=Ω(g(n)) to mean that g(n) is a …………. for f(n).

    • Lower bound

    • Upper bound

    • Space complexity

    • Average bound

    Correct Answer
    A. Lower bound
    Explanation
    The notation f(n) = Ω(g(n)) means that g(n) is a lower bound for the time complexity of the algorithm represented by f(n). This means that the algorithm will take at least as much time as g(n) for any input size n. In other words, g(n) provides a lower limit on the time complexity of the algorithm.

    Rate this question:

  • 40. 

    Any graph can be represented with the help of……………..

    • Adjacency matrix

    • Adjacency linked list matrix

    • Both a and b

    • Stack

    Correct Answer
    A. Both a and b
    Explanation
    Both an adjacency matrix and an adjacency linked list can be used to represent a graph.

    An adjacency matrix is a 2D array where each cell represents an edge between two vertices. If there is an edge between vertex i and vertex j, then the cell at (i, j) will have a value indicating the weight or presence of the edge.

    On the other hand, an adjacency linked list uses an array of linked lists to represent the edges. Each vertex has a linked list associated with it, containing the vertices it is connected to.

    Both representations have their advantages and disadvantages. The adjacency matrix allows for efficient edge lookups and is useful when the graph is dense. The adjacency linked list is more memory-efficient and is suitable for sparse graphs.

    Rate this question:

  • 41. 

    The ____ namespace is based on a hierarchical and logical tree structure

    • (0, 1)-matrix

    • Binary matrix

    • Both a and b

    • Weight matrix

    Correct Answer
    A. Both a and b
    Explanation
    The correct answer is "both a and b". This is because both (0, 1)-matrix and binary matrix are based on a hierarchical and logical tree structure. A (0, 1)-matrix is a matrix where each element can only have the values 0 or 1, and it can represent a hierarchical structure where 0 represents absence and 1 represents presence. Similarly, a binary matrix is a matrix where each element can only have the values 0 or 1, and it can also represent a hierarchical and logical tree structure. Therefore, both options a and b are correct.

    Rate this question:

  • 42. 

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 43. 

    The all pairs shortest path problem is to determine a …………….such that A (i,j) is the length of a shortest path from i to j.

    • Matrix A

    • Array A

    • Graph A

    • Tree A

    Correct Answer
    A. Matrix A
    Explanation
    The correct answer is matrix A. In the all pairs shortest path problem, the goal is to determine a matrix A where A(i,j) represents the length of the shortest path from vertex i to vertex j. This matrix allows us to easily access and compare the shortest path lengths for all pairs of vertices in the graph.

    Rate this question:

  • 44. 

    Let g be a sub graph of a graph G. Suppose I(g) and I(G) are the incidence matrices of g and G respectively. Then I(g) is called a ……………... of I(G)

    • Sub matrix

    • Linked matrix

    • Simple matrix

    • Both b and c

    Correct Answer
    A. Sub matrix
    Explanation
    The incidence matrix of a subgraph g is a submatrix of the incidence matrix of the graph G. Therefore, I(g) is called a submatrix of I(G).

    Rate this question:

  • 45. 

    Each of the floor function and ceiling function is a monotonically increasing function but not ……………..

    • Strictly monotonically increasing function

    • Monotonically decreasing function

    • Strictly monotonically decreasing function

    • Mod function

    Correct Answer
    A. Strictly monotonically increasing function
    Explanation
    The floor function and ceiling function are both monotonically increasing functions because as the input increases, the output either stays the same or increases. However, they are not strictly monotonically increasing functions because there are cases where the output remains the same even if the input increases. For example, the floor function of 2.5 is 2, and the floor function of 3.5 is also 2. Therefore, the correct answer is "strictly monotonically increasing function".

    Rate this question:

  • 46. 

    To use the branch-and-bound technique to solve any problem, first, it is necessary to conceive of a …………... for the problem

    • State space tree

    • Binary search tree

    • Syntax tree

    • Flowchart

    Correct Answer
    A. State space tree
    Explanation
    The branch-and-bound technique involves breaking down a problem into a state space tree, where each node represents a possible solution. By exploring different branches of the tree and bounding the search based on certain criteria, the technique efficiently narrows down the search space and finds an optimal solution. Therefore, the correct answer is "state space tree".

    Rate this question:

  • 47. 

    Digraphs that have at most ……………... edge between any pair of vertices, but are allowed to have self-loops are called the ……………….

    • One directed, asymmetric (or) anti-symmetric digraphs.

    • One directed, symmetric digraphs.

    • Two directed, symmetric digraphs.

    • Two directed, asymmetric

    Correct Answer
    A. One directed, asymmetric (or) anti-symmetric digraphs.
    Explanation
    Digraphs that have at most one edge between any pair of vertices, but are allowed to have self-loops, are called directed, asymmetric (or) anti-symmetric digraphs. This means that for any two vertices in the digraph, there can be at most one directed edge connecting them, and self-loops are allowed. This is different from directed, symmetric digraphs where multiple edges between vertices are allowed, and two directed, asymmetric digraphs where self-loops are not allowed.

    Rate this question:

  • 48. 

    A Hamiltonian circuit of a graph G = (V, E) is a set of edges that connects the nodes into a …………..., with each node appearing exactly ………...

    • Single cycle, once

    • Single cycle, twice

    • Double cycle, once

    • Double cycle, twice

    Correct Answer
    A. Single cycle, once
    Explanation
    A Hamiltonian circuit of a graph G = (V, E) is a set of edges that connects the nodes into a single cycle, once. This means that the circuit must visit each node exactly once, forming a closed loop. There should be no repeated nodes in the circuit.

    Rate this question:

  • 49. 

    State weather the statement is true or false for Understanding the problem we should know the following things . 1).The type of problem   2). The type of inputs and the type of expected/ desired outputs 3). Special cases of the problem, which may need different treatment for solving the problem

    • 1. True, 2. true, 3. true

    • 1. true, 2. false, 3.true

    • 1. false, 2. false, 3. false

    • 1. true, 2. true, 3. false

    Correct Answer
    A. 1. True, 2. true, 3. true
    Explanation
    The statement is true because understanding the problem requires knowing the type of problem, the type of inputs and desired outputs, and any special cases that may require different treatment. By knowing these things, we can approach the problem correctly and find an appropriate solution.

    Rate this question:

Quiz Review Timeline (Updated): Mar 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 11, 2012
    Quiz Created by
    Dsouzaanil
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.