Evaluate working time of Tjuring machine

Assignment Help Mechanical Engineering
Reference no: EM132294362

Problem 1 - Tjuring machine running time

Let's look at the computational problem L: L(x) = 1, if input date x is in the form y#z, where y and z are strings of the same length. The strings consist of the symbols a and b. This Tjuring machine works as follows:

Repeats the sequence of actions:

i. If first symbol is #, then move one symbol to the right. If there is blank, then accepts word, else reject word.

ii. If first symbol is blank, reject word.

iii. If first symbol is a or b, then:

a. clears this symbol and replaces it by blank;

b. move to the right until reach blank after end of the word;

c. move one symbol to the left. If there is a or b, clear it, replacing by blank;

d. move to the left until reach blank symbol;

e. move one step to the right (thus reaching the first non-cleared symbol of the word).

Let's evaluate working time of Tjuring machine. It is enough with evaluation "Time is O(f(n))", where f(n) is a function of some complexity (for example f(n)=n or n^2), bet it must be justified.

Problem 2 - CUT

Let's look at graph problem 3-CUT (maximum slit), where given graph G and number k. It is necessary to determine if it is possible to divide graph vertices into three sets A, B and C. Facets uv have one destination u, that belongs to one set, but second destination v belongs to another set. Facets uv must to be at least k.

Let's look at naive algorithm for this problem, which works as follows (Let n be the number of vertices, but v1,...,vn to be vertices):

For every x1 ∈ {1,2,3}, x2 ∈ {1,2,3}, . . . , xn ∈ {1,2,3}:

  • take the division, where set A includes vertices vi, where xi=1, set B includes vertices vi, where xi=2 and set C includes vertices vi, where xi=3;
  • m=0;
  • for each facet uv: if u and v are in different sets, then m=m+1;
  • if ≥k, then issues answer "yes".

If division A, B, C, where m ≥ k not found, then issues answer "No".

Let's evaluate working time of this algorithm in the form "Time is O(f(n))". Computing model: let's perceive one pseudo-code line as one action.

Reference no: EM132294362

Questions Cloud

How does the organization manage performance : How many years does it cover? How often is it updated? What are the vision, goals, and objectives from its latest strategic plan? Are the organization's plans.
Create a schema that supports the company business : One of the main functions of any business is to be able to use data to leverage a strategic competitive advantage. This feat hinges upon a company's ability.
Discuss the importance of a fair : Using an example from your workplace, discuss the importance of a fair, well-designed incentive system.
Visual equipment and computers : A vice president's position is about to open up at Ramsey Electronics, maker of components for audio and visual equipment and computers.
Evaluate working time of Tjuring machine : Let's look at the computational problem L: L(x) = 1, if input date x is in the form y#z, Let's evaluate working time of Tjuring machine
Identify statistical tools and methods to collect data : What are your statistical assumptions concerning the data that led you to selecting this family of tools?
Identify and assess an intrapreneurial opportunity : Identify and assess an intrapreneurial opportunity within your company and assess its impact with respect to both the level of effort.
Implement tax plans and evaluate tax obligations : FNSACC603 - Implement tax plans and evaluate tax obligations - Mentor Education - Explain how using income and expenditure forecasts can assist with estimating
How to use the resource of the small business administration : Create a plan for how to use the resources of the Small Business Administration (SBA) and the U.S. Patent Office in starting your small business.

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd