SlideShare a Scribd company logo
NuMachine and NuAlgebra
K. K. NAMBIAR
School of Computer and Systems Sciences
Jawaharlal Nehru University, New Delhi 110067, India
(Received June 1995)
Abstract—A NuMachine capable of computing any recursive function is defined as a labeled
graph with certain restrictions. A NuAlgebra that goes with the machine is also discussed with
examples.
Keywords—NuMachine; NuAlgebra; Recursive functions.
1. INTRODUCTION
A directed graph, here called NuMachine (also written as numachine), can be used as a model
of computation if the graph satisfies the properties given below.
1. All edges have one of the three labels a, b, or e. Two different edges can have the same label.
2. All nodes have labels 1, 1 , 1 , . . . , 2, 2 , 2 , . . . , 3, . . . , . . . , 0, the last label being always zero.
No two different nodes can have the same label. Node 1 is called the initial node and node
0 is called the final node.
3. The outdegree of the node 0 is zero. The outdegree of every other node is either one or two.
If it is one, the outgoing edge is labeled as a, and if it is two, the outgoing edges are labelled
as b and e.
4. A set of nodes is designated as input nodes and a single node is designated as the output
node.
The basis for the definition of this graph is the abacus machine described in [1], where it is
shown that abacus machines are equivalent to Turing machines. Since numachine is nothing but a
formalized version of the abacus machine, defined in terms of a graph, it follows that numachines
are also equivalent to Turing Machines and can compute any recursive function.
Figures 1 and 2 are examples of numachines which can perform addition and multiplication
respectively. For the adding machine the input nodes are 1 and 2 and the output node is 2, and
for the multiplying machine the input nodes are 1 and 2 and the output node is 3.
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
................................
................................................................
• •
•
1 2
0
b
ae
Fig. 1
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
......................................................................................................................................................................................................................................................................................................................................................................................................... .........................................................................................................................................................................................................................................................................................................................................................................................................
................................
................................
...................................
.................................
...................................
...................................
...................................
............................................................................................................................................
............................................................................................................................
................
e
b e
e
b
a
a b a
•
•
•
•
•
• •
0
1
2 4
3 4
2
Fig. 2
2. NUMACHINE
The working of the machine can be easily understood if we imagine each node as a register
having a string of a’s stored in it. The machine always starts from node 1 and moves from node
to node depending on the outgoing edges of the node. If the outgoing edge has label a, then
the machine increments the length of the string at that node by one and goes along the edge a
to the next node. If the outgoing edges have the labels b and e, then the length of the string is
decremented by one and goes along the edge b to the next node. If the length of the string is
already zero and hence cannot be decremented, the machine simply moves along edge e to the
next node.
When a set of nodes have the same number for a label, ignoring primes, it means that the
strings in those nodes can be incremented or decremented only simultaneously. When the string
in one of the nodes in the set is incremented or decremented, all the other nodes in the set do so
automatically. The working of the multiplication machine in Example 2, given later, illustrates
this. If the machine ever reaches the node 0, then it just stays put there and the computation is
considered to be over.
3. NUALGEBRA
We use the adjacency matrix [2] of the numachine in our calculations in the NuAlgebra
(also written as nualgebra). The adjacency matrix operates on a state vector of the machine and
produces a new state vector, and this process continues until the operation is no longer possible.
The muliplication of matrices in nualgebra is totally different from the usual one in that at every
stage the move to the next state vector is decided by just one row, and that too the row affects
only the corresponding row of the state vector. The position of the nonzero elements in the row
decide which row of the adjacency matrix is to be used next. The multiplication always starts
off with the first row of the matrix. These facts can easily be inferred from the working of the
numachine.
The two examples below illustrates the transitions of the machines in Figures 1 and 2 for
addition and multiplication. We will use the notation [k] for the length of the string in node k.
Example 1:
In this example the numachine calculates 2 + 2 as 4. The initial state vector shows that
[1] = 2 and [2] = 2. The final state vector shows [2] = 4.


1 2 0
1 b e
2 a
0




a2
a2
e

 =
a a e
a2
a3
a3
e e e


e
a4
e


Example 2:
Here the machine calculates 2 × 2 as 4. The initial state vector shows that [1] = 2 and
[2] = 2. The final state vector shows [3] = 4.










1 2 2 3 4 4 0
1 b e
2 b e
2 a
3 a
4 a
4 e b
0




















a2
a2
a2
e
e
e
e










=
a a a a a a a a a a a e ··
a2
a a a e e e e a a a2
a2
··
a2
a a a e e e e a a a2
a2
··
e e a a a a2
a2
a2
a2
a2
a2
a2
··
e e e a a a a2
a a e e e ··
e e e a a a a2
a a e e e ··
e e e e e e e e e e e e ··









e
a2
a2
a4
e
e
e









4. CONCLUSION
The attempt here has been to show that computation of recursive functions can also be
viewed as matrix multiplication apart from pebble manipulation and string processing.
REFERENCES
1. G. Boolos and R. Jeffrey, Computability and Logic, Cambridge University Press, New York, NY, (1974).
2. N. Deo, Graph Theory with Applications to Engineering and Computer Science, Prentice Hall of India, New
Delhi, (1984).

More Related Content

What's hot

Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked listsMultiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
Dr Sandeep Kumar Poonia
 
Collection frame work
Collection  frame workCollection  frame work
Collection frame work
Rahul Kolluri
 
Comparisons
ComparisonsComparisons
ComparisonsZifirio
 
Two Days workshop on MATLAB
Two Days workshop on MATLABTwo Days workshop on MATLAB
Two Days workshop on MATLABBhavesh Shah
 
Merge sort
Merge sortMerge sort
Merge sort
lakshitha perera
 
Lect21
Lect21Lect21
Lect21
DrASSayyad
 

What's hot (6)

Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked listsMultiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
 
Collection frame work
Collection  frame workCollection  frame work
Collection frame work
 
Comparisons
ComparisonsComparisons
Comparisons
 
Two Days workshop on MATLAB
Two Days workshop on MATLABTwo Days workshop on MATLAB
Two Days workshop on MATLAB
 
Merge sort
Merge sortMerge sort
Merge sort
 
Lect21
Lect21Lect21
Lect21
 

Similar to NuMachine and NuAlgebra

Turing machine seminar report
Turing machine seminar reportTuring machine seminar report
Turing machine seminar report
Yashwant Dagar
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
APLICACIONES DE ESPACIO VECTORIALES
APLICACIONES DE ESPACIO VECTORIALESAPLICACIONES DE ESPACIO VECTORIALES
APLICACIONES DE ESPACIO VECTORIALES
JoseLuisCastroGualot
 
Model of Computation-Turing Machine
Model of Computation-Turing MachineModel of Computation-Turing Machine
Model of Computation-Turing Machine
IOSR Journals
 
Detecting Assignable Signals Via Decomposition Of Newma Statistic
Detecting Assignable Signals Via Decomposition Of Newma StatisticDetecting Assignable Signals Via Decomposition Of Newma Statistic
Detecting Assignable Signals Via Decomposition Of Newma Statistic
journal ijrtem
 
Analysis of different multiplication algorithm and FPGA implementation of rec...
Analysis of different multiplication algorithm and FPGA implementation of rec...Analysis of different multiplication algorithm and FPGA implementation of rec...
Analysis of different multiplication algorithm and FPGA implementation of rec...
IRJET Journal
 
Implementation of Stopwatch using QCA based Carry Select Adder
Implementation of Stopwatch using QCA based Carry Select AdderImplementation of Stopwatch using QCA based Carry Select Adder
Implementation of Stopwatch using QCA based Carry Select Adder
IJTET Journal
 
ECE147C_Midterm_Report
ECE147C_Midterm_ReportECE147C_Midterm_Report
ECE147C_Midterm_ReportLars Brusletto
 
Algorithmic Mathematics.
Algorithmic Mathematics.Algorithmic Mathematics.
Algorithmic Mathematics.
Dr. Volkan OBAN
 
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault ToleranceParallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
University of Technology - Iraq
 
APPLIED MACHINE LEARNING
APPLIED MACHINE LEARNINGAPPLIED MACHINE LEARNING
APPLIED MACHINE LEARNING
Revanth Kumar
 
CS8451 - Design and Analysis of Algorithms
CS8451 - Design and Analysis of AlgorithmsCS8451 - Design and Analysis of Algorithms
CS8451 - Design and Analysis of Algorithms
Krishnan MuthuManickam
 
Amcat automata questions
Amcat   automata questionsAmcat   automata questions
Amcat automata questions
ESWARANM92
 
Amcat automata questions
Amcat   automata questionsAmcat   automata questions
Amcat automata questions
ESWARANM92
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
Ehatsham Riaz
 
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHMTHE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
IJCSEA Journal
 
Performance Analysis of Input Vector Monitoring Concurrent Built In Self Repa...
Performance Analysis of Input Vector Monitoring Concurrent Built In Self Repa...Performance Analysis of Input Vector Monitoring Concurrent Built In Self Repa...
Performance Analysis of Input Vector Monitoring Concurrent Built In Self Repa...
IJTET Journal
 
Basics of matlab
Basics of matlabBasics of matlab
Basics of matlabAnil Maurya
 

Similar to NuMachine and NuAlgebra (20)

Turing machine seminar report
Turing machine seminar reportTuring machine seminar report
Turing machine seminar report
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
APLICACIONES DE ESPACIO VECTORIALES
APLICACIONES DE ESPACIO VECTORIALESAPLICACIONES DE ESPACIO VECTORIALES
APLICACIONES DE ESPACIO VECTORIALES
 
Model of Computation-Turing Machine
Model of Computation-Turing MachineModel of Computation-Turing Machine
Model of Computation-Turing Machine
 
Detecting Assignable Signals Via Decomposition Of Newma Statistic
Detecting Assignable Signals Via Decomposition Of Newma StatisticDetecting Assignable Signals Via Decomposition Of Newma Statistic
Detecting Assignable Signals Via Decomposition Of Newma Statistic
 
honn
honnhonn
honn
 
Analysis of different multiplication algorithm and FPGA implementation of rec...
Analysis of different multiplication algorithm and FPGA implementation of rec...Analysis of different multiplication algorithm and FPGA implementation of rec...
Analysis of different multiplication algorithm and FPGA implementation of rec...
 
Implementation of Stopwatch using QCA based Carry Select Adder
Implementation of Stopwatch using QCA based Carry Select AdderImplementation of Stopwatch using QCA based Carry Select Adder
Implementation of Stopwatch using QCA based Carry Select Adder
 
ECE147C_Midterm_Report
ECE147C_Midterm_ReportECE147C_Midterm_Report
ECE147C_Midterm_Report
 
Algorithmic Mathematics.
Algorithmic Mathematics.Algorithmic Mathematics.
Algorithmic Mathematics.
 
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault ToleranceParallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
 
APPLIED MACHINE LEARNING
APPLIED MACHINE LEARNINGAPPLIED MACHINE LEARNING
APPLIED MACHINE LEARNING
 
CS8451 - Design and Analysis of Algorithms
CS8451 - Design and Analysis of AlgorithmsCS8451 - Design and Analysis of Algorithms
CS8451 - Design and Analysis of Algorithms
 
Amcat automata questions
Amcat   automata questionsAmcat   automata questions
Amcat automata questions
 
Amcat automata questions
Amcat   automata questionsAmcat   automata questions
Amcat automata questions
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
 
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHMTHE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
 
Performance Analysis of Input Vector Monitoring Concurrent Built In Self Repa...
Performance Analysis of Input Vector Monitoring Concurrent Built In Self Repa...Performance Analysis of Input Vector Monitoring Concurrent Built In Self Repa...
Performance Analysis of Input Vector Monitoring Concurrent Built In Self Repa...
 
Basics of matlab
Basics of matlabBasics of matlab
Basics of matlab
 

More from Kannan Nambiar

Power and Log sequences: Shannon's Log n and Ramanujan's Log Log n ver1904
Power and Log sequences: Shannon's Log n and Ramanujan's Log Log n  ver1904Power and Log sequences: Shannon's Log n and Ramanujan's Log Log n  ver1904
Power and Log sequences: Shannon's Log n and Ramanujan's Log Log n ver1904
Kannan Nambiar
 
Mathematical and Spiritual Universes with Millennia old Mantras
Mathematical and Spiritual Universes with Millennia old MantrasMathematical and Spiritual Universes with Millennia old Mantras
Mathematical and Spiritual Universes with Millennia old Mantras
Kannan Nambiar
 
White Hole, Black Whole, and The Book
White Hole, Black Whole, and The BookWhite Hole, Black Whole, and The Book
White Hole, Black Whole, and The Book
Kannan Nambiar
 
The Mathematical Universe in a Nutshell
The Mathematical Universe in a NutshellThe Mathematical Universe in a Nutshell
The Mathematical Universe in a Nutshell
Kannan Nambiar
 
Riemann Hypothesis and Natural Functions
Riemann Hypothesis and Natural FunctionsRiemann Hypothesis and Natural Functions
Riemann Hypothesis and Natural Functions
Kannan Nambiar
 
Sentient Arithmetic and Godel's Incompleteness Theorems
Sentient Arithmetic and Godel's Incompleteness TheoremsSentient Arithmetic and Godel's Incompleteness Theorems
Sentient Arithmetic and Godel's Incompleteness Theorems
Kannan Nambiar
 
Definition of Infinitesimal
Definition of InfinitesimalDefinition of Infinitesimal
Definition of Infinitesimal
Kannan Nambiar
 
Enhanced Set Theory
Enhanced Set TheoryEnhanced Set Theory
Enhanced Set Theory
Kannan Nambiar
 
Explicit Formula for Riemann Prime Counting Function
Explicit Formula for Riemann Prime Counting FunctionExplicit Formula for Riemann Prime Counting Function
Explicit Formula for Riemann Prime Counting Function
Kannan Nambiar
 
Unconventional View of Godel's Theorems to Accommodate History
Unconventional View of Godel's Theorems to Accommodate HistoryUnconventional View of Godel's Theorems to Accommodate History
Unconventional View of Godel's Theorems to Accommodate History
Kannan Nambiar
 

More from Kannan Nambiar (10)

Power and Log sequences: Shannon's Log n and Ramanujan's Log Log n ver1904
Power and Log sequences: Shannon's Log n and Ramanujan's Log Log n  ver1904Power and Log sequences: Shannon's Log n and Ramanujan's Log Log n  ver1904
Power and Log sequences: Shannon's Log n and Ramanujan's Log Log n ver1904
 
Mathematical and Spiritual Universes with Millennia old Mantras
Mathematical and Spiritual Universes with Millennia old MantrasMathematical and Spiritual Universes with Millennia old Mantras
Mathematical and Spiritual Universes with Millennia old Mantras
 
White Hole, Black Whole, and The Book
White Hole, Black Whole, and The BookWhite Hole, Black Whole, and The Book
White Hole, Black Whole, and The Book
 
The Mathematical Universe in a Nutshell
The Mathematical Universe in a NutshellThe Mathematical Universe in a Nutshell
The Mathematical Universe in a Nutshell
 
Riemann Hypothesis and Natural Functions
Riemann Hypothesis and Natural FunctionsRiemann Hypothesis and Natural Functions
Riemann Hypothesis and Natural Functions
 
Sentient Arithmetic and Godel's Incompleteness Theorems
Sentient Arithmetic and Godel's Incompleteness TheoremsSentient Arithmetic and Godel's Incompleteness Theorems
Sentient Arithmetic and Godel's Incompleteness Theorems
 
Definition of Infinitesimal
Definition of InfinitesimalDefinition of Infinitesimal
Definition of Infinitesimal
 
Enhanced Set Theory
Enhanced Set TheoryEnhanced Set Theory
Enhanced Set Theory
 
Explicit Formula for Riemann Prime Counting Function
Explicit Formula for Riemann Prime Counting FunctionExplicit Formula for Riemann Prime Counting Function
Explicit Formula for Riemann Prime Counting Function
 
Unconventional View of Godel's Theorems to Accommodate History
Unconventional View of Godel's Theorems to Accommodate HistoryUnconventional View of Godel's Theorems to Accommodate History
Unconventional View of Godel's Theorems to Accommodate History
 

Recently uploaded

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 

Recently uploaded (20)

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 

NuMachine and NuAlgebra

  • 1. NuMachine and NuAlgebra K. K. NAMBIAR School of Computer and Systems Sciences Jawaharlal Nehru University, New Delhi 110067, India (Received June 1995) Abstract—A NuMachine capable of computing any recursive function is defined as a labeled graph with certain restrictions. A NuAlgebra that goes with the machine is also discussed with examples. Keywords—NuMachine; NuAlgebra; Recursive functions. 1. INTRODUCTION A directed graph, here called NuMachine (also written as numachine), can be used as a model of computation if the graph satisfies the properties given below. 1. All edges have one of the three labels a, b, or e. Two different edges can have the same label. 2. All nodes have labels 1, 1 , 1 , . . . , 2, 2 , 2 , . . . , 3, . . . , . . . , 0, the last label being always zero. No two different nodes can have the same label. Node 1 is called the initial node and node 0 is called the final node. 3. The outdegree of the node 0 is zero. The outdegree of every other node is either one or two. If it is one, the outgoing edge is labeled as a, and if it is two, the outgoing edges are labelled as b and e. 4. A set of nodes is designated as input nodes and a single node is designated as the output node. The basis for the definition of this graph is the abacus machine described in [1], where it is shown that abacus machines are equivalent to Turing machines. Since numachine is nothing but a formalized version of the abacus machine, defined in terms of a graph, it follows that numachines are also equivalent to Turing Machines and can compute any recursive function. Figures 1 and 2 are examples of numachines which can perform addition and multiplication respectively. For the adding machine the input nodes are 1 and 2 and the output node is 2, and for the multiplying machine the input nodes are 1 and 2 and the output node is 3. ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... ................................ ................................................................ • • • 1 2 0 b ae Fig. 1 ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... ......................................................................................................................................................................................................................................................................................................................................................................................................... ......................................................................................................................................................................................................................................................................................................................................................................................................... ................................ ................................ ................................... ................................. ................................... ................................... ................................... ............................................................................................................................................ ............................................................................................................................ ................ e b e e b a a b a • • • • • • • 0 1 2 4 3 4 2 Fig. 2
  • 2. 2. NUMACHINE The working of the machine can be easily understood if we imagine each node as a register having a string of a’s stored in it. The machine always starts from node 1 and moves from node to node depending on the outgoing edges of the node. If the outgoing edge has label a, then the machine increments the length of the string at that node by one and goes along the edge a to the next node. If the outgoing edges have the labels b and e, then the length of the string is decremented by one and goes along the edge b to the next node. If the length of the string is already zero and hence cannot be decremented, the machine simply moves along edge e to the next node. When a set of nodes have the same number for a label, ignoring primes, it means that the strings in those nodes can be incremented or decremented only simultaneously. When the string in one of the nodes in the set is incremented or decremented, all the other nodes in the set do so automatically. The working of the multiplication machine in Example 2, given later, illustrates this. If the machine ever reaches the node 0, then it just stays put there and the computation is considered to be over. 3. NUALGEBRA We use the adjacency matrix [2] of the numachine in our calculations in the NuAlgebra (also written as nualgebra). The adjacency matrix operates on a state vector of the machine and produces a new state vector, and this process continues until the operation is no longer possible. The muliplication of matrices in nualgebra is totally different from the usual one in that at every stage the move to the next state vector is decided by just one row, and that too the row affects only the corresponding row of the state vector. The position of the nonzero elements in the row decide which row of the adjacency matrix is to be used next. The multiplication always starts off with the first row of the matrix. These facts can easily be inferred from the working of the numachine. The two examples below illustrates the transitions of the machines in Figures 1 and 2 for addition and multiplication. We will use the notation [k] for the length of the string in node k. Example 1: In this example the numachine calculates 2 + 2 as 4. The initial state vector shows that [1] = 2 and [2] = 2. The final state vector shows [2] = 4.   1 2 0 1 b e 2 a 0     a2 a2 e   = a a e a2 a3 a3 e e e   e a4 e   Example 2: Here the machine calculates 2 × 2 as 4. The initial state vector shows that [1] = 2 and [2] = 2. The final state vector shows [3] = 4.
  • 3.           1 2 2 3 4 4 0 1 b e 2 b e 2 a 3 a 4 a 4 e b 0                     a2 a2 a2 e e e e           = a a a a a a a a a a a e ·· a2 a a a e e e e a a a2 a2 ·· a2 a a a e e e e a a a2 a2 ·· e e a a a a2 a2 a2 a2 a2 a2 a2 ·· e e e a a a a2 a a e e e ·· e e e a a a a2 a a e e e ·· e e e e e e e e e e e e ··          e a2 a2 a4 e e e          4. CONCLUSION The attempt here has been to show that computation of recursive functions can also be viewed as matrix multiplication apart from pebble manipulation and string processing. REFERENCES 1. G. Boolos and R. Jeffrey, Computability and Logic, Cambridge University Press, New York, NY, (1974). 2. N. Deo, Graph Theory with Applications to Engineering and Computer Science, Prentice Hall of India, New Delhi, (1984).