View timed_scheduler.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by agiu on 1/4/23. | |
// | |
#ifndef INCLUDE_TIMED_SCHEDULER_HPP | |
#define INCLUDE_TIMED_SCHEDULER_HPP | |
#include <boost/asio/io_context.hpp> | |
#include <boost/system/error_code.hpp> | |
#include <boost/asio/steady_timer.hpp> |
View mt_check_blank_between_0_is_even.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#turing machine that tests if the number of blank spaces between zero is even | |
input: '0 0' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
0: {write: 0, R: B} | |
B: | |
' ': {write: ' ', R: C} | |
0: {write: 0, R: accept} |
View mt_balanced_parenthesis.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input: '<()()(' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: A} | |
A: | |
X: {write: X, R: A} | |
(: {write: (, R: A} | |
): {write: X, L: B} |
View mt_check_concated_strings.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Check if a string W is concated with self | |
#ex of accepted word: abaaba | |
input: '<abaabaab' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: A1} | |
A1: |
View mt_number_of_As_equals_number_of_Bs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input: '<abbabbbaaa' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: A} | |
A: | |
x: {write: x, R: A} | |
a: {write: x, R: B} | |
b: {write: x, R: D} |
View mt_binary_divisible_by_4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input: '<11111011101111000' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: q0} | |
q0: | |
0: {write: 0, R: q0} | |
1: {write: 1, R: q1} | |
' ': {write: ' ', R: accept} |
View mt_binary_divisible_by_2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input: '<0011001001110' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: q0} | |
q0: | |
0: {write: 0, R: q0} | |
1: {write: 1, R: q1} | |
' ': {write: ' ', R: accept} |
View mt_any_palindrome.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input: '<aaabaaa' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: A} | |
A: | |
a: {write: x, R: B} | |
b: {write: x, R: F} | |
' ': {write: ' ', L: accept_E} |
View mt_concat_w.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: concat_w | |
source code: | | |
input: '<aaaaa' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: A} | |
A: | |
a: {write: x, R: B} |
View mt_anbn.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: anbn | |
source code: | | |
input: '<aaabbb' | |
blank: ' ' | |
start state: start | |
table: | |
start: | |
<: {write: <, R: I} | |
I: | |
a: {write: a, R: B} |
NewerOlder