VCDQuality Forums
Here you can view your subscribed threads, work with private messages and edit your profile and preferences Frequently Asked Questions Search Home  
VCDQuality Forums : Powered by vBulletin version 2.3.0 VCDQuality Forums > Off Topic > General Discussion > Calling all eggheads
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
doctor zoidy
Jun 2003


mod? no! asshole? yes!

Calling all eggheads

Okay, here's my math problem... the keypad on my truck has 5 buttons, and a 5 digit code. This leads me to believe that there are 3125 possible codes, requiring 15625 button presses to try all of them.

However, upon testing, if i enter in the first 2 digits, the wrong third digit, then start over with the complete right code, i've pushed 8 digits, and opened the door.

how many button pushes at MAX would it take to open my door, if only the last 5 digits pushed matter?

anyone have any super duty permutation or factorial software to figure this out?

__________________

quote:
Originally posted by Dwaggy
Thats alot of words for someone that sells DVDs out of the back of a truck

quote:
Originally posted by Avenue_1 v3.0b
Read zoidys comment for clarification.

Report this post to a moderator | IP: Logged

Old Post 09-07-2008 01:52 AM
doctor zoidy is offline Click Here to See the Profile for doctor zoidy Click here to Send doctor zoidy a Private Message Visit doctor zoidy's homepage! Find more posts by doctor zoidy Add doctor zoidy to your buddy list Edit/Delete Message Reply w/Quote
pHo
Oct 2001


pjeer?

You owe me $20

__________________
563-773-1880

<Dwaggy> i caught you a delicious Bass
<The404> This is because you are an idiot

Report this post to a moderator | IP: Logged

Old Post 09-07-2008 04:37 AM
pHo is offline Click Here to See the Profile for pHo Click here to Send pHo a Private Message Visit pHo's homepage! Find more posts by pHo Add pHo to your buddy list Edit/Delete Message Reply w/Quote
doctor zoidy
Jun 2003


mod? no! asshole? yes!

I'm aware, refer to THIS THREAD for details, but i'll be paypaling you later...

__________________

quote:
Originally posted by Dwaggy
Thats alot of words for someone that sells DVDs out of the back of a truck

quote:
Originally posted by Avenue_1 v3.0b
Read zoidys comment for clarification.

Report this post to a moderator | IP: Logged

Old Post 09-07-2008 08:00 AM
doctor zoidy is offline Click Here to See the Profile for doctor zoidy Click here to Send doctor zoidy a Private Message Visit doctor zoidy's homepage! Find more posts by doctor zoidy Add doctor zoidy to your buddy list Edit/Delete Message Reply w/Quote
case sensitive
Jul 2003

Registered

Well it sounds like you already have your answer. I'm pretty sure your max is 15625, code #3125. Your best is code #1 and 5 key presses.

Can't use factorials as you can reuse the same number.

But better yet why not find the factory code printed on the module?

::Let me elaborate with less numbers. Say it is 2 digits with a 0-9 scale

[digit 1] [digit 2] = 10 choices * 10 = 100 numbers or 200 key presses.

If you enter the code just right it will be the max. Think of the code as 99 and it is last on the list and you went down the list as 81..82..83 where each false number would reset the code. You wouldn't know it so you kept going. Lets assume you don't put 89 in before 90 and get lucky and find the code. If we are assuming MAX we are looking for the worst case scenario. It would take it 200 key presses to get it.::

Last edited by case sensitive on 09-07-2008 at 10:26 AM

Report this post to a moderator | IP: Logged

Old Post 09-07-2008 09:53 AM
case sensitive is offline Click Here to See the Profile for case sensitive Click here to Send case sensitive a Private Message Find more posts by case sensitive Add case sensitive to your buddy list Edit/Delete Message Reply w/Quote
yoshy
Jun 2007



*waits 200 tries*

fingers crossed for ya

__________________
When life hands you lemons, ask for tequila and salt and call me over.

There comes a point in your life when you realise;
who matters,
who never did,
who won't any more...
and who always will.
So, don't worry about people from your past,
there's a reason why they didn't make it to your future.

Report this post to a moderator | IP: Logged

Old Post 09-07-2008 11:42 AM
yoshy is offline Click Here to See the Profile for yoshy Click here to Send yoshy a Private Message Find more posts by yoshy Add yoshy to your buddy list Edit/Delete Message Reply w/Quote
case sensitive
Jul 2003

Registered

quote:
Originally posted by yoshy
*waits 200 tries*

fingers crossed for ya



200 was just an example. It will take a lot longer to guess a 5 digit 5 numbered code.

If you stick to entering each code one at a time to find your key presses all you need to do is.

((k^n) * n) = total key presses
Where k is available digits (1-5)
Where n is code length (5)

Odds are he would be able to get the code around the average runtime

((k^n) * n) / 2

If you were just randomly poking numbers there is a very very slight chance that you would never succeed at all.

Report this post to a moderator | IP: Logged

Old Post 09-07-2008 07:19 PM
case sensitive is offline Click Here to See the Profile for case sensitive Click here to Send case sensitive a Private Message Find more posts by case sensitive Add case sensitive to your buddy list Edit/Delete Message Reply w/Quote
takwhori
Oct 2007


Senior Member

this thread gave me a sore head

Report this post to a moderator | IP: Logged

Old Post 09-07-2008 07:41 PM
takwhori is offline Click Here to See the Profile for takwhori Click here to Send takwhori a Private Message Find more posts by takwhori Add takwhori to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 02:43 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

< Contact Us - www.vcdhq.com >

Powered by: vBulletin Version 2.3.0
Copyright ©2000, 2001, Jelsoft Enterprises Limited.