can someone write an algorithm for dead reckoning of a two wheeled robot?
From Wikipedia:
In navigation, dead reckoning or dead-reckoning (also ded for deduced reckoning or DR) is the process of calculating one's current position by using a previously determined position, or fix, and advancing that position based upon known or estimated speeds over elapsed time and course.
So, how do you know your previously determined position? How do you know where you want to go? How do you know if you are actually going the right way?
Algorithms require data. What data are you prepared to supply?
Someone already has, many times. Example