The wall-hugging robot:
Program a toy robot to follow a wall. The figure shown below describes the assumptions. In a simplified version of ‘turtle geometry’, the robot’s world is a grid; any square is either free or occupied by the ‘wall’. The robot, shown as a triangle, is positioned on a free square facing in one of four possible directions. The robot consists of two binary sensors: h (‘head’, a touch sensitive bumper) signals whether the square is in front of the robot is free (0) or occupied by the wall (1); r (right) gives the same information for the square to the right of the robot. Robot is capable of two primitive actions: R turns right by 90° whereas remaining on the same square; F (forward) advances one square in the robot’s present direction.
Figure: i) The city wall and ii) the predicate ‘wall to the rear-right’.
The robot should be programmed to find out a piece of wall, then endlessly cycle all along within the wall, hugging it with right side. The given finite state machine, represented in tabular form, resolves the problem.
Seek: precondition = true, post-condition = ‘wall to the rear-right’
r h Actions Next state1 - Track- 1 RRR Track0 0 F Seek
Track: precondition = post-condition = ‘wall to the rear-right’
r h Actions Next state0 - RF Track1 0 F Track1 1 RRR TrackThe robot begins in state Seek, not knowing anything regarding its position, as stated by the vacuous assertion “precondition = true”. Function of this state is to bring about the post-condition ‘wall to the rear-right’, described in figure above: There is a piece of wall to the right of robot, or diagonally to the rear-right, or both. As long as robot hasn’t sensed any piece of wall (r = 0, h = 0) it moves forward with F. When it senses a wall, either ahead or to the right, it positions itself so as to fulfill the post-condition ‘wall to the rear-right’. With the ‘don’t care’ notation “-” we follow the design principle ‘specify behavior just as far as required’ and make the robot non-deterministic.
The mathematically inclined reader might find it instructive to confirm the program correct by checking that the state Track maintains the invariant ‘wall to the rear-right’, and that, in each and every transition, the robot progresses in his march all along the wall. Here we just point out how some basic ideas of the theory of computation, of algorithms and programs can be described in a simple, playful setting whose rules are rapidly understood.
Latest technology based Theory of Computation Online Tutoring Assistance
Tutors, at the www.tutorsglobe.com, take pledge to provide full satisfaction and assurance in Theory of Computation help via online tutoring. Students are getting 100% satisfaction by online tutors across the globe. Here you can get homework help for Theory of Computation, project ideas and tutorials. We provide email based Theory of Computation help. You can join us to ask queries 24x7 with live, experienced and qualified online tutors specialized in Theory of Computation. Through Online Tutoring, you would be able to complete your homework or assignments at your home. Tutors at the TutorsGlobe are committed to provide the best quality online tutoring assistance for Theory of Computation Homework help and assignment help services. They use their experience, as they have solved thousands of the Theory of Computation assignments, which may help you to solve your complex issues of Theory of Computation. TutorsGlobe assure for the best quality compliance to your homework. Compromise with quality is not in our dictionary. If we feel that we are not able to provide the homework help as per the deadline or given instruction by the student, we refund the money of the student without any delay.
tutorsglobe.com nephron assignment help-homework help by online excretion tutors
a wire coated with an extremely thin insulating layer is termed as enamelled wire. the core material (‘wire’) is copper or aluminum, coated by a thin layer of a polyurethane, polyamide, or polyester resin - termed as “enamel”.
Theory and lecture notes of Long-Run Effects of Deficits all along with the key concepts of Policy Mix-Deficits, Economic Growth, Full-Employment Deficits Reduce Investment, Persistent Deficits on Economic Growth. Tutorsglobe offers homework help, assignment help and tutor’s assistance on Long-Run Effects of Deficits.
Microscopic Properties of Dielectrics tutorial all along with the key concepts of electric fields in cavities of a Dielectric, Clausius-Massotti Equation, Polarization in a Gas, Polarisability and Refractive Index and Dielectric Capacitor in our practical life
tutorsglobe.com barrier techniques assignment help-homework help by online contraception tutors
tutorsglobe.com file management assignment help-homework help by online operating system tutors
Electrolytic methods tutorial all along with the key concepts of Voltammetry, principle of Voltammetry, Types of Voltammetry, Linear sweep Voltammetry, Cyclic Voltammetry, Differential Pulse Voltammetry, Electrochemical Cell Set-Up and Amperometry
tutorsglobe.com steps for computing npv assignment help-homework help by online net present value tutors
tutorsglobe.com slater rules assignment help-homework help by online calculation of atomic radius tutors
www.tutorsglobe.com offers Features of Standard Cost and Costing homework help, assignment help, case study, writing homework help, online tutoring assistance by accounting tutors.
tutorsglobe.com cerebral cortex assignment help-homework help by online the brain tutors
Theory and lecture notes of Counting Principles all along with the key concepts of Distinguishable Permutations, Finding Combinations with Calculator, Combinations, Finding Permutations with Calculator and Sample Spaces. Tutorsglobe offers homework help, assignment help and tutor’s assistance on Counting Principles.
Theory and lecture notes of Equivalence of CFGs and NPDAs all along with the key concepts of equivalence of cfgs and npdas, Context Free Grammars & Languages, palindromes, Invariant. Tutorsglobe offers homework help, assignment help and tutor’s assistance on Equivalence of CFGs and NPDAs.
Theory and lecture notes of Phillips Curve Examined all along with the key concepts of the phillips curve examined, Shifts in the Phillips Curve. Tutorsglobe offers homework help, assignment help and tutor’s assistance on Phillips Curve Examined.
malvaceae family involves about 82 genera and more than 1,500 species. the plants are cosmopolitan in distribution, more abundant in tropical and subtropical regions.
1938267
Questions Asked
3689
Tutors
1493569
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!