java-algorithms-and-data-structures

Data structures

The way data is arranged in memory; We have the following structure for arrays:

  • How many rows
  • How many cols
  • How many of those groups
E.g., String[2][2][2] arr = {
    {"000"}, {"100"},
    {"010"}, {"110"},
} 

Algorithms

Steps we take to manipulate data;

Linear search

Good for looking for all matches;

Binary search

Good for looking for one match if there are no duplicate values;