Find Jobs
Hire Freelancers

Write some Software

$10-30 USD

Σε Εξέλιξη
Αναρτήθηκε πάνω από 8 χρόνια πριν

$10-30 USD

Πληρωμή κατά την παράδοση
Write a well-structured program that: 1. reads all quadruples of an input TM and a set of input strings (intended for this input TM) and prints out both input TM and all input strings. 2. decides whether or not each input string is to be accepted by the input TM and outputs one of three possible outcomes: a. YES (accepted) b. NO (rejected) c. UNKNOWN (not sure whether accepted or rejected) Simplifying Conventions: In general, as the question of whether or not a given TM accepts a given input string is UNDECIDABLE (or UNSOLVABLE) as you know by now, we cannot definitely decide YES or NO in some cases. So in order to simplify your programming efforts, we can adopt a convenient convention in deciding the outcomes for this given program as follows: 1. YES case: If your program (which is a simulator) finds out that the input TM is about to stop (why? Because the TM has no quadruple instruction that matches the combination of the Current state and the Current tape symbol, as you should know). And this case is DEFINITE. 2. NO case: For this particular input TM program, we notice that there are some quadruples that guarantee that the input TM does not stop because the instruction itself is an infinite loop: These quadruples include: N5: Q4 B B Q4 N12: Q6 2 2 Q6 N13: Q6 B B Q6 N15: Q8 B B Q8 N22: Qa 1 1 Qa N23: Qa B B Qa // You should make sure there are no // others yourself 3. UNKNOWN case: This case is for any input string for which your program does not decide that it is YES case nor NO case, that is, neither YES case nor NO case. Note that, in general, this conclusion is indefinite unlike the first two conclusions of YES and NO. But that is OK as this is just an exercise for fun. 4. Also, note that we assume the following Initial I.D. for any TM: ...BBBQ1BXBBB... where X is an input string and Q1 is the initial state. Inputs to be used: Use the following TM (29 quads) and seven strings for inputs: A. Input TM 1. Move to the rightmost input symbol. N1: Q1 B R Q1 //Reject the empty input string N2: Q1 1 B Q2 //Leftmost=1 N3: Q1 2 B Q3 //Leftmost=2 N4: Q2 B R Q4 N5: Q4 B B Q4 //Reject odd length. N6: Q4 1 R Q5 //Get to rightmost symbol (1 or 2) N7: Q4 2 R Q5 / /Same N8: Q5 1 R Q5 / /Same N9: Q5 2 R Q5 //Same N10: Q5 B L Q6 //End of input string rightend, so go left. N11: Q6 1 B Q7 //Matching rightmost symbol (1) N12: Q6 2 2 Q6 //Unmatching, so reject N13: Q6 B B Q6 //Impossible but just in case (Reject) N14: Q3 B R Q8 //Start to move right looking for matching 2. N15: Q8 B B Q8 //Odd length (Reject) N16: Q8 1 R Q9 N17: Q8 2 R Q9 N18: Q9 1 R Q9 N19: Q9 2 R Q9 N20: Q9 B L Qa //End of rightend, so move left. N21: Qa 2 B Q7 //Matching rightmost symbol (2) N22: Qa 1 1 Qa //Unmatching, so reject. N23: Qa B B Qa //Impossible, but just in case. 2. Move to leftmost input symbol. N24: Q7 B L Qb //Qb is the only accepting state //when no input symbol remains. N25: Qb 1 L Qc N26: Qb 2 L Qc N27: Qc 1 L Qc N28: Qc 2 L Qc N29: Qc B R Q1 //Just passed the leftmost symbol, so //move right to get to it. //At Q1, the current symbol must be 1 or 2. B. Seven input strings: 1212 1221 122221 221221 12122121 221122 2211122
Ταυτότητα εργασίας: 8715340

Σχετικά με την εργασία

10 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 9 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
10 freelancers δίνουν μια μέση προσφορά $73 USD για αυτή τη δουλειά
Avatar Χρήστη
A proposal has not yet been provided
$74 USD σε 1 ημέρα
4,7 (329 αξιολογήσεις)
7,2
7,2
Avatar Χρήστη
Hello I'm interesting your project very well I'm a Good Java, Math, Algorithm expert. I understand your req exactly. I m quite well experienced in these jobs. Let's go ahead with me I want to service for you continously. Thanks
$75 USD σε 1 ημέρα
4,9 (85 αξιολογήσεις)
6,5
6,5
Avatar Χρήστη
I look forward to discuss further about the project details and deliver the same to your needs .
$54 USD σε 3 ημέρες
4,9 (21 αξιολογήσεις)
5,5
5,5
Avatar Χρήστη
We are expert in Java technologies and have done a number of successful projects. We can this project for you after some initial discussion with you.
$25 USD σε 1 ημέρα
5,0 (32 αξιολογήσεις)
4,7
4,7
Avatar Χρήστη
I am an IITK graduate, 9 year experienced software professional and I have got top notch developers in my team, who have got experience across a span of technologies. The members in my team have worked with top notch tech organization such as Amazon, Cisco, Oracle etc. We have been involved in similar projects in the past and our track record has been excellent.
$210 USD σε 1 ημέρα
4,9 (13 αξιολογήσεις)
4,4
4,4
Avatar Χρήστη
A proposal has not yet been provided
$35 USD σε 2 ημέρες
4,7 (8 αξιολογήσεις)
2,7
2,7
Avatar Χρήστη
Hello. How are you? I saw your description and attached files. I understand it and can do it well. I have done several project like this. I'm an expert in Data Structures, Turing Machine and Algorithms. And I know Java ,C/C++ and Python well. I'm interested this project. I want to discuss with you about this project. If it's possible,please contact me and explain more detail. I wait your good reply. Bye.
$100 USD σε 4 ημέρες
5,0 (3 αξιολογήσεις)
2,2
2,2
Avatar Χρήστη
A proposal has not yet been provided
$25 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
Hello! Very pleased to meet you and hope our successful companionship. I had a glance at your requirements and I feel confidence for our success. I have a heavy experiences in Java and several webforms. I have also enough resources for successful completion of your project. Please keep in touch with me so that I could discuss on this project about more detail of deadline and budget with you. Thanks & Best Wishes!
$55 USD σε 3 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
Beaumont, United States
5,0
6
Μέλος από Οκτ 19, 2015

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.