(33s) Double Deck Descriptor: A 2-level Description of Input
|
09-26-2022, 05:34 PM
Post: #1
|
|||
|
|||
(33s) Double Deck Descriptor: A 2-level Description of Input
Double Deck Descriptor (DDD)
Irritated by the inadequacies of DESCRIPTOR https://www.hpmuseum.org/forum/thread-18866.html I now present the DDD. For input 0 22367899 the programme returns 211112 987632 to be read as 291817161322 to be read as two 9s one 8 one 7 one 6 one 3 two 2s. Limitations: No particular digit may appear more than 9 times in the combination of the two levels - results become incoherent. The initial zero on stack level Y is needed as a starter - indeed, it could be replaced by any number, but the result would be questionable. If the programme is now again activated, you get a description of 291817161322 & so on. [i] is my representation of indirect (i). Code: 1. LBL D |
|||
07-12-2023, 11:48 AM
Post: #2
|
|||
|
|||
RE: (33s) Double Deck Descriptor: A 2-level Description of Input
A slightly improved version:
Code: 1. LBL D |
|||
07-12-2023, 12:25 PM
Post: #3
|
|||
|
|||
RE: (33s) Double Deck Descriptor: A 2-level Description of Input
Excuse me, I don't understand what is this program for. What does it meant Double Deck Descriptor (DDD). Can you explain this a little more for me? Thank you in advance. Pedro
|
|||
07-12-2023, 01:32 PM
Post: #4
|
|||
|
|||
RE: (33s) Double Deck Descriptor: A 2-level Description of Input
A description of the programme's function, PedroLeiva, is in the text of the 1st posting in this thread.
Another slightly improved version: Code: 1. LBL D |
|||
07-13-2023, 08:57 PM
Post: #5
|
|||
|
|||
RE: (33s) Double Deck Descriptor: A 2-level Description of Input
(07-12-2023 12:25 PM)PedroLeiva Wrote: Excuse me, I don't understand what is this program for. What does it meant Double Deck Descriptor (DDD). Can you explain this a little more for me? Thank you in advance. Pedro It looks like when given a number, this program outputs a description of that number. For example, the number 664555 could be described as "2 sixes, 1 four, 3 fives" which would be represented on the calculator as 261435. Apparently, the original program had trouble with long numbers, so he's splitting the output into a "double deck" (two rows) with the number of times each digit appears being written above the digit. So, the output 261435 would look like: 213 645 Now, if your question is why anyone would want to do this, I don't know. Maybe it has something to do with number theory? It reminded me of a programming class about 40 years ago where we had to convert a number to written text. For example, if the input were 3164, the output would be "Three Thousand One Hundred Sixty Four". This was used by banks and other businesses to write checks. - Bruce |
|||
07-13-2023, 10:38 PM
Post: #6
|
|||
|
|||
RE: (33s) Double Deck Descriptor: A 2-level Description of Input
Bruce, I didn't realize it until I read your post. Many times things are simple, but it is necessary for the brain to interpret them correctly. Thank you so much for your explanation. Pedro
|
|||
07-14-2023, 10:50 AM
Post: #7
|
|||
|
|||
RE: (33s) Double Deck Descriptor: A 2-level Description of Input
(07-13-2023 08:57 PM)byoung Wrote: Now, if your question is why anyone would want to do this, I don't know. Maybe it has something to do with number theory? For further background, this program computes a run-length encoding of the sorted digits of a number. See also A005150, the "look-and-say" sequence. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)