What is the difference between syntax and semantics

Assignment Help Data Structure & Algorithms
Reference no: EM13313487

1. Explain the distinction between an ambiguity in a proposed algorithm and an ambiguity in the representation of an algorithm.

2. Describe how the use of primitives helps remove ambiguities in an algorithm's representation.

3. What is the difference between a formal programming language and a pseudo-code?

4. What is the difference between syntax and semantics?

5. Four prospectors with only one lantern must walk through a mine-shaft. At most, two prospectors can travel together and any prospector in the shaft must be with the lantern. The prospectors, named Andrews, Blake, Johnson, and Kelly, can walk through the shaft in one minute, two minutes, four minutes, and eight minutes, respectively. When two walk together they travel at the speed of the slower prospector.
How can the prospectors get through the mine-shaft in only 15 minutes? After you have solved this problem, explain how you got your foot in the door.

*An interactive solution to a similar problem (5 people and 30 seconds), that helps to determine the solution, can be found at:

https://www.plastelina.net/examples/games/game3.html

Reference no: EM13313487

Questions Cloud

Review evans and richardson : How specifically does economic of scale serves as a value for global branding? since higher volume doesn't necessarily translate into value for global acceptance of a brand
Find how far from the lens is the object : An object is placed to the left of a lens, and a real image is formed to the right of the lens. How far from the lens is the object
Machine that has a single register and six instructions : Machine that has a single register and six instructions
What is the index of refraction of the unknown liquid : A layer of oil (n = 1.45) floats on an unknown liquid. A ray of light originates in the oil and passes into the unknown liquid. What is the index of refraction of the unknown liquid
What is the difference between syntax and semantics : Explain the distinction between an ambiguity in a proposed algorithm and an ambiguity in the representation of an algorithm.
What is the tension in the cables : A 20 Kg loudspeaker is suspended 2.0 m below the ceilling by two cables that are each 30' from vertical . What is the tension in the cables
Describe the ka of lactic acid hc3h5o3 : The Ka of lactic acid, HC3H5O3, is 1.410?4. (a) Suppose buffer #1 is prepared using 40.0 mL 0.1 M HC3H5O3 and 60.0 mL 0.1 M C3H5O3- to give a final volume of 100.0 mL. What is the pH of this buffer
Calculate average flow rate and hydraulic gradient : The cylinder has a length of 120 cm and a diameter of 12 cm. The field sample with a porosity of 0.24 is tested under a constant head difference of 160 cm with water at 10 degree Celcius.
Where do othe researchers drop ff the ewaste : Where do othe researchers drop ff the ewaste and where does it end up?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Algorithm-find schedule to obtain maximum amount of profit

Give an algorithm to find schedule which obtains maximum amount of profit, assuming that all processing times are integers between 1 and n.

  Question about data network

The Minnesota Computer Consulting Group is a fifty person consulting services practice focusing on telecommunications and systems administration that includes Minnesota offices in Minneapolis, St. Paul, and Rochester.

  Algorithm to find maximum sum of contiguous sublist

Using dynamic programming, write an algorithm to find the maximum sum of contiguous sublist of a given list of n real values.

  Portfolio planning using optimization

Set this problem up as a linear programming model in Excel, and use Solver to determine how the $10 million should be invested. What is the overall return (in dollars terms)

  Creating the flowchart for the decision structure

A telephone corporation service plan charges twenty-five cents for each call made. In addition, it charges five cents a minute for all calls made to a phone number that has a service plan with the corporation.

  Create an algorithm to produce list of customers

Create an algorithm to produce list of customers from Glad Rags Clothing Company's customer master file. Each record on customer master file contains the customer's number

  Create a program using c++

Create a program using C++ or Java that will automatically generate x numbers between a range provided by the user? For purposes of this project, the range can be 1-20 and store them in an array.

  Sort scheduling algorithms according to high throughput

Sort the scheduling algorithms (FCFS, SPF, RR, MLFB) according to each of High throughput (if we take averages of time intervals smaller than the sum of all processes' time)

  Ambiguity in proposed algorithm-in representation algorithm

Describe distinction between the ambiguity in proposed algorithm and ambiguity in representation of the algorithm.

  Object identifier tree

Assume you worked for a United States based corporation that wanted to develop its own MIB for managing a product line. Where in the object identifier tree would it be registered?

  Read in a height in feet and inches

Write a program that will read in a height in feet and inches (feet should be an integer, while inches should be a float) and will output the equivalent height in meters (as a float). Use at least three functions

  Create algorithm to prepare daily hotel charge report

Create the algorithm to prepare the daily hotel charge report. Input consists of series of records which contain a room number, customer name, cost of the room, and cost of meals charged to the room.

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