concept difference in category algorithms

appears as: difference, The differences, The difference, differences, differences
Algorithms and Data Structures in Action

This is an excerpt from Manning's book Algorithms and Data Structures in Action.

Data structures follows the same conventions, but they also go slightly beyond: we have to describe as well the actions you can perform on a data structure; usually each action is described in term of an algorithm, so with an input, an output, but in addition to those, for DSs we also need to describe side effects, the changes an action might cause to the data structure itself.

Figure 6.4 Comparing BST and trie approaches on a different example. When the keys in the trie have a larger ratio of shared characters (i.e. a longer common prefix), tries turn out to be more efficient in storing strings.

Figure 10.4 shows how these properties translates into a tree data structure: here the difference with k-d trees is even more evident!

Listing 18.4 Natural Selection
function naturalSelection(
    population, elitism, selectForMating, crossover, mutations)        #1
  newPopulation ← elitism(population)                    #2
  while |newPopulation| < |population| do                    #3
    p1 ← selectForMating(population)                    #4
    p2 ← selectForMating(population)
    newIndividual ← crossover.apply(p1, p2)                #5
    for mutation in mutations do
      mutation.apply(newIndividual)                    #6
    newPopulation.add(newIndividual)                    #7
  return newPopulation