{% extends "base.html" %} {% block title %}Searching | USSU Algorithm Analyzer v4.0{% endblock %} {% block content %}
8 searching algorithms with complexity tracking and benchmark comparison.
Sequential scan through array. No sorting required.
Divide search space in half each iteration.
Jump ahead by √n steps, then linear search backward.
Array size: {{ result.array_size }} elements. Target: {{ result.target }}. Algorithm: {{ result.algorithm }}.
Performed {{ result.comparisons }} comparisons and {{ result.accesses }} array accesses across {{ result.recursions }} recursive calls.
Target {{ "found" if result.found else "not found" }} at index {{ result.index }}. Time complexity: {{ result.time_complexity }}. Space: {{ result.space_complexity }}.
| Algorithm | Time (ms) | Found | Index | Comparisons | Complexity |
|---|---|---|---|---|---|
| {{ r.name }} | {{ "%.6f"|format(r.time_ms) }} | {{ "Yes" if r.found else "No" }} | {{ r.index }} | {{ r.comparisons }} | {{ r.complexity }} |