pkel / cpr

consensus protocol research
9 stars 2 forks source link

Real-Time Dynamic Programming #49

Closed pkel closed 2 months ago

pkel commented 6 months ago

While working on #48 I came to the conclusion that modern RL algorithms might be overkill for my type of problem. I went back to the tabular solving approach kicked-off in #46. I came up with a new solving algorithm that is similar to value iteration but

According to Sutton and Barto book on RL, this falls into the broad category of "Asynchronous Dynamic Programming". After some googling, I think I've implemented Real-Time Dynamic Programming.

The results seem promising. I can now handle a non-truncated hence infinite state space instance of the generic DAG model for Nakamoto/Bitcoin.

pkel commented 2 months ago

I initially was hyped about this RTDP thing because

After implementing the algorithm I

Merging/closing this now, as I'm about to explore a somewhat separate idea which re-uses parts of the tooling.