Pigeon hole principle used for derived strings

In summary, my method says that if the starting string has two digits, then the sequence of strings will eventually repeat.
  • #1
diana.hole
8
0

Homework Statement


Consider this string of digits:

A=03161011511417191111

It has two 0s, twelve 1s, zero 2s, and so on.

We construct another string of digits, called B, as follows: write the number of zeros in A, followed by the number of 1s, followed by the number of 2s, and so on until we write the number of 9s. Thus

B=21201111101

String B is called the derived string of A. We now repeat this procedure on B to get its derived string C, then get the derived string of C, and so on to produce a sequence of derived strings.

A=03161011511417191111

B=21201111101

C=2720000000

D=7020000100

E=7110000100

F=6300000100

G=7101001000

H=6300000100

Notice that the last string equals a previous string so the sequence of derived strings will now repeat.

show that if a string has less than 1000 digits, then its derived string has at most 29 digits.


Homework Equations


N/A


3. The Attempt at a Solution [/b
i know that the pigeon hole principle should be used but I am not quite sure how to apply it, or word the answer correctly.
 
Physics news on Phys.org
  • #2
Do you have a "near-miss" solution that would help illustrate what your thinking is with this currently?
 
  • #3
well, so far my explanation is as follows;
lets take the largest possible number under 1000, which is 999, for the amount of digits in the original string.
the derived string is divided into 10 "segments"(zeros, ones, twos, threes etc.)
if all the digits in the original string containing 999 digits were the same, then the derived string would have three digits representing the number that was repeated, and a singular digit representing all the other numbers that weren't, thus creating a derived string containing a maximum of 12 digits altogether.
e.g. 3+(1*9)=12
then, in order to get a larger amount of digits for the derived string, you split it up, where 999 is made up of two digits of equal/similar amounts. meaning that in the derived string there will be 2 sets of three digits representing the numbers that were repeated, and a singular digit for all the numbers that weren't.
e.g. 3+3+(1*8)=14
henceforth you continue the trend until you reach the pinnacle/climax.
the continued trend would look like this:
3+3+3+(1*7)=16
3+3+3+3+(1*6)=18
3+3+3+3+3+(1*5)=20
3+3+3+3+3+3+(1*4)=22
3+3+3+3+3+3+3+(1*3)=24
3+3+3+3+3+3+3+3+(1*2)=26
until we reach the point where the derived string consists of;
9 digits which are repeated 100 times each, and one digit which is repeated 99 times, therefore in the derived string there will be 9 sets of three digits representing the numbers that were repeated 100 times each, and two digits representing the number that was repeated 99 times. hence making a total of 29 digits in the derived string.
e.g. (9*3)+2=29
therefore reaching the pinnacle, and proving that 29 is the maximum amount of digits a derived string can have if the initial string had less than 1000 digits.
is this a sufficient argument? tell me if there is something wrong with it, because I am really bad at explaining things, and i don't know whether my writing is comprehensible or not.
 
  • #4
Your argument is sound, if a little long-winded. The pigeonhole principle is kind-of reversed here to say that there must be one digit that appears less than 100 times, therefore the total digit count is 29 rather than 30. Of course there are a great many ways that 29 digits can be achieved.

What does your method say about starting with a string of 29 digits?
 
  • #5
im not quite sure what you mean by "starting a string with 29 digits"

and i also have another question to do with derived strings.

find all the strings that have 1000110001 as their derived string.

my approach to this was since it has 10 digits, that means that every digit represents the amount for each digit in the string that was previous this one. which means that there is; 1 zero digit, 1 four digit, 1 five digit, and 1 nine digit.
therefore this is the original string since it doesn't have a total of 10 digits, and all the combinations for the original string includes;
0459, 0495, 0549, 0594, 0945, 0954, 4059, 4095, 4509, 4590, 4905, 4950 etc.
is this correct?
 
  • #6
To clarify my earlier question: how many digits might the derived string have if the starting string has 29 digits?

On strings that generate 1000110001 - correct. What is the total number of possibilities?
 
  • #7
well according to my method, if the original string had 29 digits, then the derived string would at most have 12 digits.
 
  • #8
Yes, so you see how quickly a starter string will shorten down to 10 digits.
 
  • #9
I have a related question as well.
How can you prove that if the starting string has only two digits, then the sequence of strings will eventually repeat?
 
  • #10
The existence proof would use the fact that there are only a finite number of strings possible.
 
  • #11
Hi, i have the same question, shown below: 'How can you prove that if the starting string has only two digits, then the sequence of strings will eventually repeat?' Joffan, could you please elaborate and help me solve this equation! thankyou (could you reply as soon as possible)
 
  • #12
Joffan, is there any other way to contact you! i desperately need this answer!
 
  • #13
If the starting string has two digits - say 52 - then the derived string will have 10 digits, 0010010000 in this case. Then depending only on whether the initial two digits were the same or different, there are only two possibilities for the next string, and you can track both of those until they repeat, for a direct demonstration in very few steps.

More generally, if the starting string is 1-9 digits, the next string will be 10 digits not all the same, and every following string will be 10 digits not all the same that sum to 10 (you'd need to explain why this is true). There are only a finite set of such strings so repetition must occur eventually.
 
Last edited:
  • #14
thankyou very much joffan! i have already seen the pattern and made connections! However, an actual proof as to why the strings eventually repeat is turning to be extremely difficult. i am missing a connection! could you please, reply as this is due in tomorrow giving a proof! it can be brief! thankyou very much, already!
regards massive!
 
  • #15
This thread is locked. We do not give help to users who show zero work.

And this was posted by a user who wishes now to remain anonymous...

Are you all doing Math Challenge Stage? You're not supposed to get external help.
 

Related to Pigeon hole principle used for derived strings

What is the pigeonhole principle and how is it used for derived strings?

The pigeonhole principle is a mathematical concept that states that if there are more pigeons than pigeonholes, then at least one pigeonhole must contain more than one pigeon. This principle is used for derived strings in the field of computer science to prove the existence of certain patterns within a set of strings.

How does the pigeonhole principle help in analyzing derived strings?

The pigeonhole principle helps in analyzing derived strings by providing a way to prove that certain patterns must exist within a set of strings. This can be useful in various applications, such as data compression, error correction, and data mining.

Can the pigeonhole principle be applied to any type of derived strings?

Yes, the pigeonhole principle can be applied to any type of derived strings as long as there are a finite number of possible strings and a finite number of possible derived strings. It is a general principle that can be used in various contexts.

What are some real-life examples of the pigeonhole principle being used for derived strings?

One example of the pigeonhole principle being used for derived strings is in DNA sequencing, where it is used to identify patterns in genetic sequences. It is also used in data compression algorithms, such as Huffman coding, to prove the existence of certain patterns in a set of data.

Are there any limitations to the pigeonhole principle when applied to derived strings?

The pigeonhole principle is a powerful tool in analyzing derived strings, but it does have its limitations. It can only prove the existence of certain patterns, but it cannot determine the exact number or location of those patterns. Additionally, it assumes that all possible combinations of strings are equally likely, which may not always be the case in real-world scenarios.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
32
Views
926
  • Beyond the Standard Models
Replies
3
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
7K
  • General Math
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
971
  • Beyond the Standard Models
Replies
0
Views
1K
  • Special and General Relativity
3
Replies
75
Views
3K
  • Set Theory, Logic, Probability, Statistics
2
Replies
43
Views
4K
Replies
66
Views
4K
  • Introductory Physics Homework Help
Replies
26
Views
2K
Back
Top