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

  A reaction turbine is supplied with steam

A reaction turbine is supplied with steam at 60 bars and 600 degree Celsius. The condenser pressure is 0.07 bar. If reheat factor can be assumed to be 1.04 and stage efficiency is constant throughout at 80% calculate the steam flow required for a dia..

  Simulate the solidification situation during a casting proce

Generate a computer code to simulate the solidification situation during a casting process - plots of Tcenter versus time and Tp versus time

  Determine the distance from the leading edge

Determine the distance from the leading edge at which the minimum cooling rate is achieved.

  How much energy do you consume to complete the task

While completing this homework, imagine the study space you are using employs a space heater with a rating of 30 kW, a refrigerator (for snacks) that is rated for 5 kW, and a light fixture with 2100 W bulbs, all operating at a constant rate for th..

  Mass of wheels and any frictional resistance to motion

Neglect the mass of the wheels and any frictional resistance to motion. The density of sand  is rs = 1520 kg>m3.

  Based upon a comparison of the calculated and measured

neglecting the effects of radiation absorption emission and scattering within their atmospheres calculate the average

  Insulated reactor operating at steady state-burns completely

Methane gas (CH4) at 25° C, 1 atm enters an insulated reactor operating at steady state and burns completely with  x % of theoretical air entering at 25°C, 1 atm. Calculate the adiabatic flame temperature (AFT) at x=100, 200, 300 and 400 % and plot t..

  Find the optimum position for the mortar

For the special case in which h = ½ a, find the optimum position for the mortar and the optimum elevation angle to clear the building. If you are a star at electrostatics, try the following two problems:

  Configuration management policies and processes

Suggest five possible problems that could arise if a company does not develop effective configuration management policies and processes. What are the benefits of using a change request form as the central document in the change management process?

  What is the leak rate of hydrogen through one meter of pipe

A cylindrical steel pipe is used to transport hydrogen gas in a certain process. The density of the hydrogen in the pipe is 5kg/m3 and the density in the environment is effectively zero. The pipe has a diameter of 5cm and a thickness of 3mm. If the d..

  What strategies could be used to counteract the increased

What strategies could be used to counteract the increased Nitric oxides emissions with ethanol blended petrol?

  Air from the surroundings enters the tank at a rate of 181

a tank with a volume of 0.142 m3 is initially evacuated. the tank develops a small hole. air from the surroundings

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