ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Turing Machine as Comparator || Lesson 89 || Finite Automata || Learning Monkey ||

Автор: Wisdomers - Computer Science and Engineering

Загружено: 2022-02-25

Просмотров: 3182

Описание: Turing Machine as Comparator
In this class, We discuss Turing Machine as Comparator
The reader should have prior knowledge of the Turing machine as a subtractor. Click Here.
We take an example and understand the Turing machine as a comparator.
a b
a b
a = b
The above comparisons were made using unary numbers.
The below diagram shows the example for a = b.
The two numbers, a and b, are differentiated using the symbol zero in the memory.
a = 3 and b = 3.
We convert the first one in the number a and the first one in number b.
We come back to convert the second number in a and move right to convert the second one in b.
On converting the first one in number a., we move right. If we see one, we move right.
The first number is over when we see zero, so move right to find one in the second number.
After converting the 1 in number b, move left till we find ‘x’ in number a.
We convert all ones in both numbers.
If a number a is over, we find zero. Then check for an extra one in number b.
If we find a blank, both numbers are equal, and
if we find an extra one, the number b is greater.
The below diagram shows the number b greater than a.
The below diagram shows condition a b.
After finding one in number, a and blank is found on the number b. we say it a b
The below diagram shows the compete Turing machine for the comparator.
On the state q0, if we see input symbol one, we convert to ‘x’ and move right.
The state q1 is used to move right till we find zero.
Once we find zero, the first number is over.
On the state q1, if we find input zero, we move right.
The state q2 is used to move right on the second number.
On the state q2, if we find the input symbol ‘x’, move right.
On the state q2, if we find the input symbol one, we convert to ‘x’ and move left.
Similarly, the state q3 is used to move back on the second number.
On state q3, if we find input symbol zero, we change to state q4.
The state q4 is used to move left on the first number.
On the state q4, if we see the input symbol ‘x’, we move right to find the next one in the first number.
On the state q2, if we find a blank symbol, we say a b., so we move to halt state.
On the state q0, if we find input symbol zero, we move to state q5 to check for a b or a = b.
On the state q5, if we find input one, we move to the halt state a b.
On the state q5, if we find a blank symbol, we move to the halt state a = b.

Link for playlists:
   / @wisdomerscse  


Link for our website: https://learningmonkey.in

Follow us on Facebook @   / learningmonkey  

Follow us on Instagram @   / learningmonkey1  

Follow us on Twitter @   / _learningmonkey  

Mail us @ [email protected]

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Turing Machine as Comparator || Lesson 89 || Finite Automata || Learning Monkey ||

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Non Halting Turing Machine || Lesson 90 || Finite Automata || Learning Monkey ||

Non Halting Turing Machine || Lesson 90 || Finite Automata || Learning Monkey ||

Машина Тьюринга для вычитания двух чисел || Унарные | целые числа | TOC | FLAT | Теория вычислений

Машина Тьюринга для вычитания двух чисел || Унарные | целые числа | TOC | FLAT | Теория вычислений

Foundations 11-02-PartA Turing Machines (using JFLAP)

Foundations 11-02-PartA Turing Machines (using JFLAP)

Машина Тьюринга для сложения двух чисел || Унарные || Целые числа || TOC || FLAT || Теория вычисл...

Машина Тьюринга для сложения двух чисел || Унарные || Целые числа || TOC || FLAT || Теория вычисл...

Turing Machine for Division

Turing Machine for Division

Токарный станок для всех палиндромов || Чётные и нечётные || Длина | TOC || FLAT | Теория вычислений

Токарный станок для всех палиндромов || Чётные и нечётные || Длина | TOC || FLAT | Теория вычислений

⚡️ Истребители НАТО открыли огонь || Путин срочно направляет спецборт

⚡️ Истребители НАТО открыли огонь || Путин срочно направляет спецборт

Киев резко сменил тон / Срочное заявление Зеленского

Киев резко сменил тон / Срочное заявление Зеленского

L 105: Turing machine for Division | Turing machine for Unary division

L 105: Turing machine for Division | Turing machine for Unary division

1. Introduction, Finite Automata, Regular Expressions

1. Introduction, Finite Automata, Regular Expressions

43. Методы программирования для машины Тьюринга

43. Методы программирования для машины Тьюринга

Turing Machine for Odd Palindrome | waw^r | wbw^r | GATECSE | TOC

Turing Machine for Odd Palindrome | waw^r | wbw^r | GATECSE | TOC

50 Best of Bach

50 Best of Bach

Combining Turing Machines | Turing Machine for L = SS / S ∈ (a, b)* | L = WW | Automata Theory | TOC

Combining Turing Machines | Turing Machine for L = SS / S ∈ (a, b)* | L = WW | Automata Theory | TOC

Irish music - The Celtic Soul – Magical Irish Melodies to Ease the Heart | Celtic music

Irish music - The Celtic Soul – Magical Irish Melodies to Ease the Heart | Celtic music

Удар «Цирконом» по Рютте в Киеве | В Минобороны Польше раскрыт агент разведок России и Беларуси

Удар «Цирконом» по Рютте в Киеве | В Минобороны Польше раскрыт агент разведок России и Беларуси

Turing Machine for ww^r | Turing Machine for Even Palindrome | GATECSE | TOC

Turing Machine for ww^r | Turing Machine for Even Palindrome | GATECSE | TOC

Bach - Classical Music for Relaxation

Bach - Classical Music for Relaxation

Turing Machine as a Comparator | How Turing Machine do Comparison | GATECSE | TOC

Turing Machine as a Comparator | How Turing Machine do Comparison | GATECSE | TOC

Tomaso Albinoni Oboe & Violin Concerto

Tomaso Albinoni Oboe & Violin Concerto

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]