I am trying to understand how Shannon Fano Codes are being assigned values in the following example. Please help me understand it.

2026-03-30 10:35:46.1774866946
How are codes assigned value in Shannon Fano Coding?
781 Views Asked by user2857 https://math.techqa.club/user/user2857/detail At
1
It might be better if you could explain what you don't understand. Did you read the paragraph above?
The list is divided into "two groups of as nearly equal probabilities as possible". It looks as though they put $a$ into one group and $b-h$ in the other group. Each symbol in the first group ($a$) is assigned a 0 as the first bit, so $a$ gets a 0 as its first bit. The others get a 1 as their first bit. the result is column I of the table
Then the second group is further divided, into $c,e$ and $b,d,f,g,h$. The items in the first group get an additional 0 on their codes; the items in the second group get an additional 1. This is column II of the table.