SlideShare a Scribd company logo
1 of 3
Download to read offline
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 listsDr Sandeep Kumar Poonia
 
Collection frame work
Collection  frame workCollection  frame work
Collection frame workRahul Kolluri
 
Comparisons
ComparisonsComparisons
ComparisonsZifirio
 
Two Days workshop on MATLAB
Two Days workshop on MATLABTwo Days workshop on MATLAB
Two Days workshop on MATLABBhavesh Shah
 

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 reportYashwant 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 VECTORIALESJoseLuisCastroGualot
 
Model of Computation-Turing Machine
Model of Computation-Turing MachineModel of Computation-Turing Machine
Model of Computation-Turing MachineIOSR 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 Statisticjournal 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 AdderIJTET 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 ToleranceUniversity of Technology - Iraq
 
APPLIED MACHINE LEARNING
APPLIED MACHINE LEARNINGAPPLIED MACHINE LEARNING
APPLIED MACHINE LEARNINGRevanth Kumar
 
CS8451 - Design and Analysis of Algorithms
CS8451 - Design and Analysis of AlgorithmsCS8451 - Design and Analysis of Algorithms
CS8451 - Design and Analysis of AlgorithmsKrishnan MuthuManickam
 
Amcat automata questions
Amcat   automata questionsAmcat   automata questions
Amcat automata questionsESWARANM92
 
Amcat automata questions
Amcat   automata questionsAmcat   automata questions
Amcat automata questionsESWARANM92
 
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 machineEhatsham 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 ALGORITHMIJCSEA 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 ver1904Kannan 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 MantrasKannan 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 BookKannan Nambiar
 
The Mathematical Universe in a Nutshell
The Mathematical Universe in a NutshellThe Mathematical Universe in a Nutshell
The Mathematical Universe in a NutshellKannan Nambiar
 
Riemann Hypothesis and Natural Functions
Riemann Hypothesis and Natural FunctionsRiemann Hypothesis and Natural Functions
Riemann Hypothesis and Natural FunctionsKannan 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 TheoremsKannan Nambiar
 
Definition of Infinitesimal
Definition of InfinitesimalDefinition of Infinitesimal
Definition of InfinitesimalKannan 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 FunctionKannan 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 HistoryKannan 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

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 

Recently uploaded (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

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).