{% extends "base.html" %} {% block title %}Backtracking | USSU Algorithm Analyzer v4.0 {% if result %}
{{ result.algorithm }} — DFS over state space with constraint checking. {{ result.recursions }} recursive calls, {{ result.comparisons }} constraint checks.
Invalid branches pruned early via constraint validation. Reduced search space from exponential to manageable subset.
Found in {{ "%.4f"|format(result.execution_time_ms) }}ms. Complexity: {{ result.time_complexity }}.
N-Queens, Sudoku, Subset Sum, Graph Coloring, and Hamiltonian Cycle with visual puzzles.
Place n queens on n×n board so no two attack each other. Classic backtracking with pruning.
Fill 9×9 grid so each row, column, and 3×3 box contains 1-9. Constraint satisfaction.
Find cycle visiting every vertex exactly once. NP-Complete problem solved via backtracking.
{{ result.algorithm }} — DFS over state space with constraint checking. {{ result.recursions }} recursive calls, {{ result.comparisons }} constraint checks.
Invalid branches pruned early via constraint validation. Reduced search space from exponential to manageable subset.
Found in {{ "%.4f"|format(result.execution_time_ms) }}ms. Complexity: {{ result.time_complexity }}.
{{ result.algorithm }} — DFS over state space with constraint checking. {{ result.recursions }} recursive calls, {{ result.comparisons }} constraint checks.
Invalid branches pruned early via constraint validation. Reduced search space from exponential to manageable subset.
Found in {{ "%.4f"|format(result.execution_time_ms) }}ms. Complexity: {{ result.time_complexity }}.