Project briefing illustration for warehouse search: a flat tactical intelligence sheet in the style of Star Fox Assault.
ACADEMIC PROJECT / Computer Science Course

Warehouse Search Algorithm Comparison

I worked on DFS, Bellman-Ford, debugging, and the report for a team warehouse-search project; revisiting its results made the definition of a fair benchmark part of the lesson.

graph searchBFSDFSDijkstraA*Bellman-Fordteam project
TRY THE IDEA

Interactive demonstration

A new browser adaptation made in October 2026 using sample data. It illustrates the concepts; it is not the original submitted program.

Toggle walls, then search from S to G. Movement is orthogonal and every step costs one.

Ready to search

Bright green shows the selected route; teal cells were discovered. This single-goal demonstration is separate from the historical multi-item team project.

Turning the warehouse into a graph

My part in this December 2024 team project was initial DFS and Bellman-Ford work, debugging, and report explanations. We were comparing ways to move through a warehouse grid and collect items. The surviving final report describes tiles, cardinal adjacency, repeated searches from the last collected item, and comparative route lengths. When I revisited the project in October 2026, the report was available, but the final application source and original grids were still missing. That shaped the work I could honestly do: explain the search decisions and identify what a reproduction would require.

The grid gave me a concrete way to reason about a graph. Each traversable tile is a vertex, and an edge leads to an allowed north, east, south, or west neighbor. Obstacles restrict what is reachable. The report references S, o, i, and a period as map symbols, but their exact legend needs the missing parser and grids. I have left that detail open rather than assigning meanings that the available evidence cannot confirm.

THE CHALLENGE

The challenge: a short segment is not a short collection tour

The application did not stop after one search. It reached an item and used that location as the starting point for another. Looking at that sequence, I have to separate two decisions: the path to the next item and the order in which items are collected.

That distinction changes how I interpret the comparison. A shortest segment can still lead into an expensive remaining tour. My reproduction plan therefore records the item-selection policy alongside the route-finding algorithm and holds that policy constant when comparing searches. The missing source leaves the historical policy unresolved; the report alone cannot establish that every measured route reflects the same selection decisions.

I also identified per-segment state as a review boundary. Visited flags, predecessor links, tentative distances, and the frontier belong to the current search and must be reset for the next one. Otherwise, old state can close off a reachable tile or reconstruct a path through the previous segment. This is a concrete requirement for the eventual reproduction, not a claim that I found that particular bug in the unavailable final program.

Tracing the frontier before interpreting the path

PROJECT STEPS

How one search segment produces a route

Project briefing illustration for warehouse search: a flat tactical intelligence sheet in the style of Star Fox Assault.
STEP 01 OF 04
Reachable tiles

In my teaching model, I represent each usable warehouse tile as a point in a graph, a network joined by allowed up, down, left, and right moves. Obstacles determine which tiles can be reached through those connections. I can explain the structure described in the report, but the original map files and the code that reads them are missing, so I leave their historical symbols’ exact meanings unresolved.

Select a step to follow the project.
Read all step descriptions
  1. Reachable tiles

    In my teaching model, I represent each usable warehouse tile as a point in a graph, a network joined by allowed up, down, left, and right moves. Obstacles determine which tiles can be reached through those connections. I can explain the structure described in the report, but the original map files and the code that reads them are missing, so I leave their historical symbols’ exact meanings unresolved.

  2. Frontier

    I trace how a queue, stack, or priority list chooses the next location to examine: a queue takes earlier entries first, a stack takes the latest, and a priority list selects by rank. This waiting collection is the search frontier, and its selection rule explains the strategy, though neighbor order and ties can still change a particular route. The missing final source prevents me from confirming the historical depth-first search’s insertion order or reproducing its measured routes.

  3. Search state

    For each search segment, I would keep its distances, examined-location markers, and predecessor links, which record where a route came from. I would define how these records reset and how an unreachable target is reported so I could explain the discovered route clearly. This is a requirement for reproducing the project; I have not established that the unavailable final application reused old search data incorrectly.

  4. Next segment

    After reconstructing a route to an item, I would move the starting location there and create fresh records for the next search. I would also document how the next item is chosen, because short individual routes do not guarantee a short trip through all items. The historical selection policy remains unresolved, so the reported route lengths are historical results rather than new reproduction measurements.

Teaching model for one search: the frontier strategy changes how candidate locations are explored.

The report describes a custom queue for breadth-first search and a custom stack for depth-first search. That difference is central to the behavior I was studying: the queue explores expanding layers, while the stack follows a branch before returning to alternatives. With equal-cost edges, BFS supports shortest-path reasoning; DFS can answer reachability and still take a much longer route.

For DFS, even the order of neighbors matters. Pushing north, east, south, and west onto a stack does not visit them in that same order. Combined with an early stop, that choice can change the recorded route. I would recover the actual push order before trying to explain a specific DFS result.

The report also describes Bellman-Ford distance and predecessor relaxation, with up to V−1 passes, plus priority queues for Dijkstra and A*. A* uses a Manhattan-distance heuristic. I can explain those mechanisms, but their names do not recover the edge weights, unreachable-target behavior, or tie-breaking rules. Manhattan distance fits the familiar unit-cost cardinal-movement model; confirming that model in this application remains part of the source review.

What the reported results let me say

The historical report gives four cases, A through D. BFS, Dijkstra, A*, and Bellman-Ford each have route lengths of 21, 24, 41, and 19. DFS has lengths of 77, 35, 67, and 19. Those are the project values I can retain and discuss.

I did not rerun those cases in October 2026. Without the original grids and final source, I cannot independently reproduce their agreement or turn four cases into a general ranking for warehouses. The longer DFS routes fit what its frontier discipline can produce, but the particular lengths still depend on the original traversal order and stopping rules.

One useful correction came from reading what the report actually counted. Its “Memory Usage” column measures node evaluations, not bytes. I now describe it as search effort. A future benchmark would report expanded nodes, elapsed time, and memory separately, with a definition and measurement procedure for each. A precise label matters as much as a precise number.

How I would make the comparison reproducible

I turned those open questions into a recovery sequence that starts with the original inputs:

  1. Obtain the final source and unchanged test grids
  2. Confirm the parser legend, coordinate convention, obstacles, and edge costs
  3. Record neighbor order, target selection, queue or stack behavior, and stopping rules
  4. Verify per-segment reset, unreachable handling, and predecessor-based path reconstruction
  5. Trace one small case by hand before comparing every historical case
  6. Publish fresh measurements with the environment and metric definitions attached

A synthetic grid can still help me teach the concepts while recovery is incomplete. I would label it as a new educational example with its own assumptions and measurements, so a reader can distinguish that demonstration from the historical project.

The contribution I can stand behind

The contribution record supports my initial DFS and Bellman-Ford work, debugging, and report explanations. A teammate later replaced the DFS test implementation with an ArrayStack version, so the final DFS result is collaborative. I credit the rest of the team collectively rather than treating the final comparison as work I completed alone.

The October 2026 result is clearer documentation and a reproduction plan. The missing source, original grids, and fresh performance measurements remain missing. My lasting lesson is that an algorithm study is only inspectable when the route decisions and the measurement definitions travel with its results.

REPORT-BASED

Report only. Final source and original grids are unavailable; no October 2026 runtime or benchmark results are claimed.

Validation & limitations

  • Report only. Final source and original grids are unavailable; no October 2026 runtime or benchmark results are claimed.

Project records

  • Project artifacts and historical records, December 8, 2024 report and submission
  • Restoration and public documentation, October 1, 2026
END OF PROJECT FILE RETURN TO ARCHIVE