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: 289
| Attempts: 289 | Questions: 75
Please wait...
Question 1 / 75
0 %
0/100
Score 0/100
1. All solutions to the 8-queens problem can be represented as ………………. where xi is the column on which queen i is placed.

Explanation

The 8-queens problem involves placing 8 queens on an 8x8 chessboard such that no two queens threaten each other. Each solution to the problem can be represented as an 8-tuple (x1......x8), where xi represents the column on which queen i is placed. This means that each element in the tuple represents the column number of the corresponding queen. Therefore, the correct answer is 8-tuples (x1......x8).

Submit
Please wait...
About This Quiz
Bt0080 - Fundamentals Of Algorithms - 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... see morealgorithm, 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. see less

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

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."

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

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."

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

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.

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

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.

Submit
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 ………..

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.

Submit
7. Merge sort is an example of

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.

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

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.

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

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.

Submit
10. Knapsack Problem is an example of

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.

Submit
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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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."

Submit
18. Each internal node in binary tree represents a …………

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.

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

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.

Submit
20. The worst case efficiency for quick sort is

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.

Submit
21. 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 ………..

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".

Submit
22. 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)

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).

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

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.

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

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.

Submit
25. A collection of trees is called a . …….

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.

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

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.

Submit
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.

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.

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

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.

Submit
29. Before executing Merge Sort, the n elements should be placed in 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.

Submit
30. 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 ………….

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.

Submit
31. Graph theory was born in ………….. with Euler's famous paper

Explanation

Graph theory was born in 1736 with Euler's famous paper.

Submit
32. 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 ………...

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.

Submit
33. 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

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.

Submit
34. A graph is also called a ………..

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.

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

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.

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

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.

Submit
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

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.

Submit
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.

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.

Submit
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).

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.

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

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.

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

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.

Submit
42. 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.

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.

Submit
43.

Explanation

not-available-via-ai

Submit
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)

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).

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

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.

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

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".

Submit
47. 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 ………...

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.

Submit
48. 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

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.

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

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".

Submit
50. To formulate a greedy-based algorithm to generate the shortest paths, we must conceive of a ………. solution to the problem and also ……….. measure.

Explanation

To formulate a greedy-based algorithm to generate the shortest paths, we must conceive of a multistage solution to the problem and also an optimization measure. A multistage solution means that the problem is divided into multiple stages or steps, where each step contributes to finding the shortest path. This approach allows for a more systematic and efficient way of solving the problem. Additionally, an optimization measure is necessary to determine the best path among the available options at each stage, ensuring that the algorithm consistently selects the shortest path. Therefore, the combination of a multistage solution and an optimization measure is crucial for generating the shortest paths using a greedy-based algorithm.

Submit
51. The multistage graph problem can also be solved using the ……………….

Explanation

The multistage graph problem can be solved using the backward approach. In this approach, we start from the last stage and move towards the first stage. At each stage, we calculate the optimal solution based on the solutions obtained from the next stage. This approach is useful when the optimal solution depends on future stages and allows us to efficiently solve problems with multiple stages.

Submit
52. State weather the following statement is true or false for NP Hard and NP Complete Problems 1).The theory of NP-completeness, which we present here, does not provide a method of obtaining polynomial time algorithms for problems in the second group.. 2). Nor does it say that algorithms of this complexity do not exist. 3). , we establish two classes of problems. These are given names, NP-hard and NP-Complete.

Explanation

The theory of NP-completeness does not provide a method of obtaining polynomial time algorithms for problems in the second group, which means that the statement in option 1 is true. Additionally, the theory does not say that algorithms of this complexity do not exist, so the statement in option 2 is also true. Finally, the given statement correctly states that two classes of problems, NP-hard and NP-Complete, are established, making the statement in option 3 true as well. Therefore, the correct answer is 1. True, 2. true, 3. true.

Submit
53. The problems which require so large amount of computational resources and can not be solved by computational means. These problems are called …………………

Explanation

The given statement describes problems that cannot be solved using computational means due to their large computational requirements. These types of problems are commonly referred to as intractable problems. "Intractable" means that these problems are difficult or impossible to solve using current computational resources and techniques. Therefore, the correct answer is intractable problems.

Submit
54. A Hamiltonian circuit in a connected graph is defined as a ……………... that traverses every vertex of G exactly once, except ……………..

Explanation

A Hamiltonian circuit in a connected graph is a closed walk that traverses every vertex of G exactly once, except the starting vertex. This means that the walk starts and ends at the same vertex, and visits all other vertices exactly once in between.

Submit
55. A circuit is a closed, ………….. walk

Explanation

A circuit is a closed path that starts and ends at the same point. In this context, "nonintersecting" means that the path of the circuit does not cross or intersect with itself at any point. This is the correct answer because a circuit must be nonintersecting in order to be considered a valid closed path.

Submit
56. A tree in which there is exactly one vertex of degree 2, and all other remaining vertices are of degree one or three, is called a ………….

Explanation

A tree in which there is exactly one vertex of degree 2, and all other remaining vertices are of degree one or three, is called a binary tree. This is because in a binary tree, each vertex can have at most two children, which aligns with the condition stated in the question. The other options, complete binary tree, almost complete binary tree, and forest, do not specify the requirement of exactly one vertex of degree 2.

Submit
57. State weather the following statement is true or false for Spanning Trees 1).A tree T is said to be a spanning tree of a connected graph G if T is a sub graph of G and T contains all the vertices of G 2). Spanning trees are the largest (with the maximum number of edges) trees among all trees in G. 3). Spanning is defined only for a connected graph

Explanation

A spanning tree of a connected graph G is a tree that includes all the vertices of G. This means that statement 1 is true.

Spanning trees are not necessarily the largest trees in terms of the number of edges. They are simply trees that include all the vertices of the graph. Therefore, statement 2 is false.

Spanning is defined only for a connected graph because a spanning tree must include all the vertices of the graph, and in a disconnected graph, there may be vertices that are not reachable from other vertices. Therefore, statement 3 is true.

Submit
58. A functions differing from each other by constant factors, should be treated as ……………..

Explanation

Functions that differ from each other by constant factors should be treated as complexity-wise equivalent. This means that the time complexity of these functions is essentially the same, as the constant factors do not significantly impact the overall complexity. In terms of analyzing the efficiency of algorithms, it is common to ignore constant factors and focus on the dominant terms or growth rates. Therefore, these functions can be considered equivalent in terms of their overall complexity.

Submit
59. ………………….maps each real number x to the integer, which is the greatest of all integers less than or equal to

Explanation

The given correct answer is "Floor Function." The floor function maps each real number x to the integer, which is the greatest of all integers less than or equal to x. It rounds down the value of x to the nearest integer. For example, the floor of 3.7 is 3, the floor of -2.3 is -3, and the floor of 5 is 5. The floor function is a commonly used mathematical function that is often used in various fields including mathematics, computer science, and engineering.

Submit
60.  The concept of logarithm is defined indirectly by the definition of ……………

Explanation

The concept of logarithm is defined indirectly by the definition of exponential. Logarithm is the inverse operation of exponentiation. It represents the power to which a base must be raised to obtain a given number. Exponential functions have the form y = a^x, where a is a constant and x is the exponent. Logarithmic functions have the form y = log_a(x), where a is the base and x is the argument. The relationship between exponential and logarithmic functions is fundamental in mathematics and allows for solving equations involving exponents and finding the unknown exponent.

Submit
61.

Explanation

not-available-via-ai

Submit
62. A directed graph is also referred to as ……………

Explanation

A directed graph is also referred to as an oriented graph because it is a graph where the edges have a specific direction. In a directed graph, each edge has an associated direction, indicating the flow or relationship between the nodes. This term "oriented" emphasizes the directional aspect of the graph, distinguishing it from an undirected graph where the edges do not have a specific direction. Therefore, the correct answer is "an oriented graph."

Submit
63. A classic combinational problem is to place …………. on 8x8 chessboard so that no two "attack" that is, so that no two of them are on the …………….., colors or diagonal.

Explanation

The correct answer is "eight queens, same row". This means that the problem is to place eight queens on an 8x8 chessboard in such a way that no two queens are in the same row. This condition ensures that no two queens can attack each other horizontally. The other options mentioned in the question (four queens, same column; four queens, same row; 8-queens, same column) are incorrect because they do not satisfy the condition of placing eight queens on the board.

Submit
64.

Explanation

not-available-via-ai

Submit
65.

Explanation

not-available-via-ai

Submit
66. A digraph that has neither ……………. nor …………….. is called a simple digraph

Explanation

A digraph is a directed graph that consists of vertices and directed edges. A self-loop occurs when an edge connects a vertex to itself, while parallel edges are multiple edges between the same pair of vertices. A simple digraph does not have any self-loops or parallel edges, meaning that each vertex is connected to at most one outgoing edge and at most one incoming edge. Therefore, the correct answer is "self-loops, parallel edges".

Submit
67. If the algorithm ………., following a left or right branch, then no i has been such that x=A[i] and the algorithm must declare the search …………..

Explanation

The given statement suggests that if the algorithm does not encounter any element in the array that matches the target value, it will follow either the left or right branch. In this case, the algorithm will terminate without finding a match, hence it is declared as unsuccessful.

Submit
68. State weather the following statement is true or false for Circuit Matrix. 1).i) If a column of B(G) contains all zeros, then the related edge does not belong to any circuit. 2). iii) If a row contains only one "1", then the related edge is a self-loop 3). ii) Each row of B(G) corresponds to a circuit. So each row may be called as a circuit vector

Explanation

1) If a column of B(G) contains all zeros, it means that there are no edges connected to that particular vertex. In a circuit matrix, a circuit is a closed path that starts and ends at the same vertex. If a column contains all zeros, it implies that there are no edges connected to that vertex, hence the related edge does not belong to any circuit. Therefore, the statement is true.

2) If a row contains only one "1", it means that there is only one edge connected to that particular vertex. In a circuit matrix, a self-loop is an edge that starts and ends at the same vertex. If a row contains only one "1", it implies that there is only one edge connected to that vertex, which satisfies the definition of a self-loop. Therefore, the statement is true.

3) Each row of B(G) corresponds to a circuit in a circuit matrix. A circuit vector is a term used to refer to a row in the circuit matrix since it represents a circuit. Therefore, each row may be called a circuit vector. Therefore, the statement is true.

Submit
69. State weather the following statement is true or false for Binary Euler's Digraphs 1) D is said to be a Euler digraph if it contains a directed Euler line 2). A closed directed walk which traverses every edge of D exactly once, is called a directed Euler line 3). A directed walk that starts and ends at the different vertex is called a closed directed walk.

Explanation

The given answer is correct. In Binary Euler's Digraphs, a digraph D is said to be a Euler digraph if it contains a directed Euler line, which is a closed directed walk that traverses every edge of D exactly once. Therefore, statement 1 is true. Statement 2 is also true as it correctly defines a directed Euler line. However, statement 3 is false as a closed directed walk starts and ends at the same vertex, not different vertices.

Submit
70. State weather the following statement is true or false for Single Source Shortlist Paths 1).The problem is to determine the shortest paths from v̥0 to all the remaining vertices of G.. 2).It is assumed that all the weights are positive. 3). The greedy way to generate the shortest paths from v0 to the remaining vertices is to generate these paths in non-decreasing order of path len

Explanation

The first statement is true because the problem is indeed to determine the shortest paths from v0 to all the remaining vertices of G. The second statement is false because it is not assumed that all the weights are positive. The third statement is true because the greedy way to generate the shortest paths from v0 to the remaining vertices is to generate these paths in non-decreasing order of path length.

Submit
71. The sum of path lengths from the root to all pendent vertices is called the…………. (or) ………….. of a tree.

Explanation

The sum of path lengths from the root to all pendent vertices is called the path length. Additionally, it is also referred to as the external path length of a tree.

Submit
72. State weather the following statement is true or false for Trees 1).A tree is a connected graph with circuits. 2). A graph must have at least one vertex, and therefore so must a tree. 3). a tree without any vertices called null tree

Explanation

1) A tree is a connected graph without any circuits, so the statement is false.
2) A graph must have at least one vertex, and since a tree is a type of graph, it must also have at least one vertex. Therefore, the statement is true.
3) A tree without any vertices is called a null tree, so the statement is true.

Submit
73. State weather the following statement is true or false 1).Shell sort is also called diminishing-increment sort 2).A tree is called a binary tree, if it is either empty, or it consists of a node called the root 3). The concept of mathematical expectation is needed in best case analysis of algorithms.

Explanation

not-available-via-ai

Submit
74. State weather the following statement is true or false for Sum of Subsets 1).Given positive numbers wi, 1≤ i ≤n, and m, this problem calls for finding all subsets of the wi whose sums are m. 2). In general, all solutions are k-tuples (x1, x2…….. xk), 1 ≤ k ≤ n, and different solutions may have different sized tuples 3). implicit constraints that is imposed is xi<xi+1, I ≤ i < k.

Explanation

The first statement is true because the problem is indeed asking for finding subsets of positive numbers whose sums are equal to a given number.

The second statement is false because it states that all solutions are k-tuples, but in reality, different solutions may have different sizes of tuples.

The third statement is true as it imposes the constraint that xi should be less than xi+1 for all i from 1 to k-1.

Submit
75. State weather the following statement is true or false for NP-Complete and NP-Hard Problems 1).a problem is called NP-Complete if P has at least one Non-Deterministic Polynomial-time solution. 2).The process of transformation of the instances of the problem already known to the decidable to instances of the problem, is called reduction 3). A Polynomial-time reduction is a polynomial-time algorithm

Explanation

1) The statement is true. A problem is called NP-Complete if it has at least one Non-Deterministic Polynomial-time solution.

2) The statement is false. The process of transforming instances of a known decidable problem to instances of another problem is called reduction.

3) The statement is true. A Polynomial-time reduction is an algorithm that can transform instances of one problem to instances of another problem in polynomial time.

Submit
View My Results

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
Cancel
  • All
    All (75)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
All solutions to the 8-queens problem can be represented as...
The travelling salesperson problem is to find a tour of...
A feasible solution that either maximizes or minimizes a given...
A procedure, which can call …………., is said...
An algorithm must terminate after a finite number of steps is known as
When the sequence of execution of instructions is to be the same as...
Merge sort is an example of
In branch-and-bound terminology, a BFS-like state space search will be...
A tree in which one vertex (called the root) is distinguished from all...
Knapsack Problem is an example of
For many problems it is possible to easily observe that a lower bound...
A multistage graph G = (V,E) is a...
The estimated no. of unbounded nodes is only...
An edge having the same vertex as both its end vertices called a...
A closed walk running through every edge of the graph G exactly once...
Backtracking algorithms determine problem's solutions by...
If A[i] is less than A[j], then the algorithm proceeds down the...
Each internal node in binary tree represents a...
It may be noted that the …………..condition...
The worst case efficiency for quick sort is
A linear graph (or simply a graph) G = (V,E) consists of a set of...
Let g be a sub graph of a graph G. Suppose I(g) and I(G) are the...
Backtracking algorithms for the knapsack problem can be arrived at...
A D-search-like state space search will be called...
A collection of trees is called a . …….
A connected graph G is a Euler graph if and only if it can be...
A vertex v is said to be an ……………....
 A process is a ………….. actually being...
Before executing Merge Sort, the n elements should be placed in a...
Two graphs H1 = (V1, E1) and H2 = (V2, E2) are said to be...
Graph theory was born in ………….. with...
F: R -> R where, R is the set of real numbers....
To search the travelling salesperson state space tree, we need to...
A graph is also called a ………..
The cost c(.) is such that the solution node with least c(.)...
In a graph, when does Dijkstra's algorithm stop?
State weather the following statement is true or false for Hamiltonian...
State weather the following statement is true or false for Recursion...
If f(n) is the time for some algorithm, then we write...
Any graph can be represented with the help...
The ____ namespace is based on a hierarchical and logical tree...
The all pairs shortest path problem is to determine a...
Let g be a sub graph of a graph G. Suppose I(g) and I(G) are the...
Digraphs that have at most ……………......
To use the branch-and-bound technique to solve any problem, first, it...
A Hamiltonian circuit of a graph G = (V, E) is a set of edges that...
State weather the statement is true or false for Understanding the...
Each of the floor function and ceiling function is a monotonically...
To formulate a greedy-based algorithm to generate the shortest paths,...
The multistage graph problem can also be solved using the...
State weather the following statement is true or false for NP Hard and...
The problems which require so large amount of computational resources...
A Hamiltonian circuit in a connected graph is defined as a...
A circuit is a closed, ………….. walk
A tree in which there is exactly one vertex of degree 2, and all other...
State weather the following statement is true or false for Spanning...
A functions differing from each other by constant factors, should be...
………………….maps each...
 The concept of logarithm is defined indirectly by the definition...
A directed graph is also referred to as...
A classic combinational problem is to place...
A digraph that has neither ……………....
If the algorithm ………., following a left or right...
State weather the following statement is true or false for Circuit...
State weather the following statement is true or false for Binary...
State weather the following statement is true or false for Single...
The sum of path lengths from the root to all pendent vertices is...
State weather the following statement is true or false for Trees...
State weather the following statement is true or false...
State weather the following statement is true or false for Sum of...
State weather the following statement is true or false for NP-Complete...
Alert!

Advertisement