Video 81 of a series explaining the basic concepts of Data Structures and Algorithms. This video explains the concept of encoding tries. This video is meant for educational purposes only.
the question is how did we decide 001 represents "b" and 01 represents "r". Because these do not correspond to the binary representations of their ascii codes.
She's just using 3 bits and incrementing from 0 but then randomly chose one for "r." For the sake of this exercise, that usage is trivial so you can use any binary representation you want