How to Decode a Natural Number Back into a Sequence Using Gödel Numbering?

  • Thread starter Thread starter atrus_ovis
  • Start date Start date
  • Tags Tags
    Godel
Click For Summary
The discussion centers on the confusion surrounding the decoding of a natural number back into a sequence of natural numbers, specifically in the context of Gödel numbering. Participants clarify the encoding process and emphasize the importance of understanding the specific encoding method being used. One participant suggests referring to Gödel's encoding as outlined in a Wikipedia article, highlighting that if this encoding is used, decoding can be achieved through prime factorization. This method allows for the retrieval of the original sequence from the encoded natural number.
atrus_ovis
Messages
99
Reaction score
0
I'm ok with encoding, but I m confused about decoding a natural number back into a sequence of natural numbers.

For example, to decode a natural number N back to the sequence <x1,x2,...xn>
 
Technology news on Phys.org
How about you explain to us how you are going about encoding the sequence into a natural number, and then we can help figure out how to do the reverse? As I understand there is more than one system you could call a "godel numbering".

Is this the encoding you are using?

http://en.wikipedia.org/wiki/Gödel_numbering#G.C3.B6del.27s_encoding

If it is, then the process for decode is simply "Perform a prime factorization".
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 32 ·
2
Replies
32
Views
5K
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 1 ·
Replies
1
Views
592
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 24 ·
Replies
24
Views
6K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
8
Views
1K