concept each pair in category algorithms

This is an excerpt from Manning's book Algorithms and Data Structures in Action.
A BST is a special kind of binary tree that can store keys on which it is defined a total ordering: this means that for each pair of keys, it must be possible to compare them and decide which one is smaller, or if they are equal. A total ordering benefits from reflexive, symmetric and transitive properties.
While the former idea is a brute-force fully-randomized search, a better targeted solution seems more promising, as we would direct the search towards values that should work better for our goal: we can use the same idea behind gradient descent[14], although with a simpler algorithm that just decides the direction of the update, without worrying about slopes and gradients. For instance, we could run a cycle where we adjust the value for the inner threshold (and, when needed, also the one for the outer threshold) depending on the difference between the result we get from canopy clustering and the number of centroids we need.
Listing 13.5 MapReduce DBSCAN
function MRdbscan(points, numShards, eps, minPts) #1 shards, adjList, marginPoints ← gridShard(points, numShards, eps) #2 mappers ← initMappers(numShards, dbscan, shards, eps, minPts) #3 reducers ← initReducers(adjList, mergeClusters, marginPoints) #4 clusters, noise, mergeList ← mapReduce(mappers, reducers) #5 return combine(clusters, noise, mergeList) #6