Skip to content

Glossary: Algorithms Beyond the Basics in Java

2D array

Also written: int[][], two-dimensional array

An array of arrays, used as a table with rows and columns. `new int[rows][cols]` builds one filled with zeros, like the knapsack's `best` table.

Where the book teaches it

Related terms

0/1 knapsackbottom-up (tabulation)