+0  
 
0
686
7
avatar

A transaction ID generator generates random, 27 character strings from the set of lower case and upper case letters and single digits (a-z, A-Z, 0-9). A software bug causes the software to error out if the transaction ID contains the particular substring 'ABC' anywhere within the transaction ID. What proportion of transaction ID's generated will cause the bug?

 Mar 31, 2016
edited by Guest  Mar 31, 2016

Best Answer 

 #5
avatar+118723 
+5

Without any character repeating

 

okay we have [ABC] and   59 other characters to choose from to make a string of 27   (24+3)

 

(25*59P24) / 62P27

 

25*nPr(59,24)/nPr(62,27) = 0.0001101709853693

 

approx 1  in 10,000

 

I think that is correct.       wink

 

 

 

and the 28 in my last answser that was wrong anyway shoud have be 25 - silly me.

 Mar 31, 2016
 #1
avatar+33661 
+10

My reasoning is as follows:

 

prob.

.

 Mar 31, 2016
 #2
avatar
0

Hello Alan: Can the font of your software package be made a little larger?

Even with eye glasses, my eyes have a rough time reading your answers! Thanks.

 Mar 31, 2016
 #6
avatar+118723 
0

Can't you just magnify your screen?

 

I just press ctrl and then use the roller thingy on my mouse.

Melody  Mar 31, 2016
 #3
avatar+118723 
0

Hi Alan, 

 

I am not saying your answer is wrong - I am just not necessarily convinced it is right.

 

Here is another possibility (probably wrong)

 

Say we stick an ABC together so that instead of choosing 27 characters we choose 24 plus our one lot of joined letters.

 

Then the answer could  be

 

\(\frac{28*62^{24}}{62^{27}}=\frac{28}{62^{3}}=\frac{28}{238328}\)

 

28/238328 = 0.0001174851465208

 

So that is about 1 in 10,000

 

Much more often than what Alan got.

I do not think that this is correct because The ABC could occur in our not prejoined together sequences.  So I tend to think it would happen more often than this - not less.  :///

idk probability is so confusing  LOL

 Mar 31, 2016
 #4
avatar+118723 
0

I didn't notice - there is no repetition allowed!  That should make it easier!

I'll have another go.  :D

Melody  Mar 31, 2016
 #7
avatar+33661 
0

Hmm.  I didn't notice it said with no repetition either.  It only said this in the title!

Alan  Mar 31, 2016
 #5
avatar+118723 
+5
Best Answer

Without any character repeating

 

okay we have [ABC] and   59 other characters to choose from to make a string of 27   (24+3)

 

(25*59P24) / 62P27

 

25*nPr(59,24)/nPr(62,27) = 0.0001101709853693

 

approx 1  in 10,000

 

I think that is correct.       wink

 

 

 

and the 28 in my last answser that was wrong anyway shoud have be 25 - silly me.

Melody Mar 31, 2016

3 Online Users