{"openapi":"3.1.0","info":{"title":"Knapsack DP Visualizer","description":"Step through the 0/1 knapsack dynamic-programming table cell by cell, with editable items and capacity, playback controls, and an animated backtrack that highlights the chosen items.","version":"1.0"},"servers":[{"url":"https://dabbled.ai"}],"paths":{"/apps/knapsack-dp-visualizer":{"get":{"operationId":"knapsackDpVisualizer","summary":"Step through the 0/1 knapsack dynamic-programming table cell by cell, with editable items and capacity, playback controls, and an animated backtrack that highlights the chosen items.","parameters":[{"name":"capacity","in":"query","required":false,"description":"Knapsack capacity","schema":{"type":"number"}},{"name":"weights","in":"query","required":false,"description":"Item weights, comma separated","schema":{"type":"string"}},{"name":"values","in":"query","required":false,"description":"Item values, comma separated","schema":{"type":"string"}},{"name":"auto_backtrack","in":"query","required":false,"description":"Automatically animate backtracking when the table is complete","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Rendered app reflecting the given inputs."}}}}}}