Unit 6: Backtracking - Subjective Questions

ECAP538 • Practice Questions with Detailed Answers

20 questions

1

Define backtracking. Explain the general method used to solve a problem through backtracking.

2

What is a state-space tree in backtracking? Explain its components and role.

3

Explain the concepts of promising functions, constraints, and pruning in a backtracking algorithm.

4

Write and explain a general recursive algorithm for backtracking.

5

Compare backtracking with brute-force search. Also discuss the worst-case time and space complexity of backtracking.

6

Formulate the 8-queens problem as a backtracking problem and identify its constraints.

7

Derive the promising condition used while placing the -th queen in the -queens problem.

8

Describe a recursive backtracking algorithm for solving the general -queens problem.

9

Illustrate how backtracking occurs in the -queens problem when a partial placement cannot be extended.

10

Analyze the search space and practical efficiency of the backtracking solution to the -queens problem.

11

Define the graph coloring problem and formulate the -coloring problem for backtracking.

12

Explain the promising function for the graph -coloring problem.

13

Describe a backtracking algorithm that determines whether a graph is colorable using at most colors.

14

Distinguish between the graph coloring decision problem, the optimization problem, and the chromatic number.

15

Discuss how vertex ordering and data structures affect the performance of backtracking for graph coloring.

16

Define a Hamiltonian cycle and distinguish it from a Hamiltonian path and an Euler cycle.

17

Formulate the Hamiltonian cycle problem using a state-space tree and specify its promising conditions.

18

Write and explain a recursive backtracking algorithm for finding a Hamiltonian cycle in a graph.

19

Analyze the worst-case complexity of the backtracking algorithm for the Hamiltonian cycle problem.

20

Compare the backtracking formulations of the -queens, graph coloring, and Hamiltonian cycle problems.