| (1) Get for some guess on number of nodes , |
| β. |
| (2) Start with some initial value of |
| (3) Get some estimate on value of . |
| (4) Get , and expected number of frames needed, , |
| βββbased on current estimate and for , |
| β |
| (5) while message not read do |
| (6)βfor frame to ββdo |
| (7)ββfor all slots in frame ββdo |
| (8)βββExecute protocol for calculated for frame |
| (9)βββTerminate execution if message read and reset |
| ββββto initial state |
| (10)ββend for |
| (11)βend for |
| (12)βIncrease estimate by a constant factor |
| (13)βGet , and expected number of frames needed, , |
| βββbased on current for |
| βββ |
| (14) end while |