countChange
✓ Published0🌍 Public
CColinEberhardt
Last edited Dec 1, 2014
Created on Dec 1, 2014
This example visualizes the recursive computation of `countChange`, a Scala function that counts the number of ways to make change for a given amount using a list of coin denominations. It shows the branching call tree, where each node represents a recursive invocation, and the paths highlight how the algorithm explores combinations of coins. The visualization uses d3.forceSimulation to layout the nodes and edges, with the code from gistfile1.scala driving the structure. The rendering approach maps each recursive call to a visual node, revealing the exponential growth of subproblems.
AI-generated description