← Back to Projects

Recursion Tree Explorer

Final project for Advanced Data Structures and Algorithms. This project was created for CSCI332 and serves as a way to demonstrate recursion trees to newcomers.

About Project

Recursion trees were the topic I found hardest in CSCI 332 (Advanced Data Structures and Algorithms), so I built the tool I wish I'd had. Type in any recurrence of the form T(n) = aT(n/b) + n^d, with up to three recursive terms, and the explorer draws the full tree, totals the work at every level, and walks through the solution step by step using your own numbers.

The point is one idea: each level's total is the level above multiplied by a single ratio r. If r is below 1 the root dominates, if it equals 1 every level does the same work, and if it's above 1 the leaves dominate. Bars beside the tree make that pattern visible, and a predict-then-reveal mode lets you test yourself before seeing the answer.

Click any number, node, or step to see what it means and why it has that value. A Randomize button generates new recurrences to practise on, and a concrete-n mode checks the Big-O against real sums. Built with React, TypeScript, Vite, and KaTeX.

Technologies

recursiondsa