Posts

Technology: bodwin.jemoka.com

Last edited: October 10, 2025

Name: bodwin.jemoka.com

Technology: Airpods Pro A3063

Description: Airpods Pro 3

Lost

If you have stumbled upon this page due to finding this device in the wild, thank you so much! Reach out to [email protected] or +1 650 209-0966 to get in touch. Please do the right thing.

Thank you.

unsupervized learning

Last edited: October 10, 2025

binary search tree

Last edited: October 10, 2025

constituents

Assume keys are distinct.

  • node: elements in the tree
  • key: each node has a key, which tags the node and is the key being sorted on
  • root: the node with no parents
  • leaves: the nodes with two nil children
  • height: number of edges root to leaf (i.e. if there is a tree root-leaf directly, then the height is 1)

Every node has 2, possibly-null, children. Every node has a parent except for the root.

designing a divide-and-conquer algorithm

Last edited: October 10, 2025
  1. we first go identify some natural subproblems…
  2. suppose you could solve the subproblems magically, can you solve the big problem?

Then go about thinking about the recurrence relation, etc.

Tips

  • use some small examples by hand
  • leverage existing algorithms
  • use some analysis to guess what the structure of the solution is

red-black tree

Last edited: October 10, 2025

constituents

a binary search tree

requirements

  • every node is colored red or black
  • root node is black
  • NIL children are black node
  • children of red nodes are black nodes
  • for all nodes x, all parts from x to NIL have the same number of black nodes
  • for all nodes, all paths from x to nil have the same number of black nodes

additional information

intuition

  1. black nodes are balanced — “every path from root to nil would have the same black nodes”
  2. red nodes are “spread out” so they don’t mess things up too much

Its weaker than perfect balance, and its not too weak to break things.