View Single Post
  #6 (permalink)  
Old 05-15-2008, 04:42 AM
Sephy's Avatar   
Sephy Sephy is offline
Newbie
 
Join Date: May 2008
Posts: 6
Credits: 0
Rep Power: 0
Sephy is on a distinguished road
Default Re: Documents number check and correction if possible.

I got better details for my tast

So here is my REAL task. I need some algorithm for my documents code. Something similar to algorithm used in credit cards(Luhn algorithm - Wikipedia, the free encyclopedia). I could use this one but i need something so i can use error correction too as i mention before. For correction i will need store some check code for each user. I need this because i want my system could work off-line(for example credit cards are valid when formula for calculation gives out 0).

example: user gives 123456789(his real number is 123456788). I check it vs my algorithm correct and give out: correct is 123456788 and there where mistake in 9 position.
Reply With Quote