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

  Write the implementation of a data structure

Write an implementation of a data structure S that supports the following operations: Insert(S, x): insert the key x into S only if it is not already there.

  For what values of d is the tree t

For what values of d is the tree T of the previous exercise an order -d B-tree? HINT: The definition of an order- d  deals with the minimum and maximum number of children an internal node can have.

  Design a linear-time algorithm

Design a linear-time algorithm that verifies that the height information in an AVL tree is correctly maintained and that the balance property is in order.

  Write algorithm find intersection of two singly-linked list

Write an algorithm (pseudocode) to find the intersection of two singly-linked lists. Assume that the data in each list are in nondecreasing order.

  Create greedy algorithm to find market to buy apples

Assume we drive pickup truck from city A to city B. Along high way, we will go through n apple markets, labeled with 1, 2, ..., n, where you can buy or sell apples. which means you buy and sell apples at the same market i.

  Creating a big inteter calculator program

Create a big-inteter calculator program that permits the user to enter two large integers and the operation to be performed and that calls appropriate function to carry out the designated operation.

  Mst (minimum spanning tree)

A graph has distinct edge weights. Does its lightest edge have to belong to the MST (Minimum Spanning Tree)? Can its heaviest edge belong to the MST?

  Calculate bits number output of first round-des decryption

Calculate the bits number 1, 16, 33, and 48 at output of first round of DES decryption, suppose that ciphertext block is composed of all ones

  Define file type

Define File Type and provide some of the important information to know about it and where do file types come from?

  Analogue of max flow min cut theorem-capacitated network

Explain how to define the s-t cut on node capacitated network as opposed to edge capacitated network, and how would one illustrate that analogue of the max flow min cut theorem.

  Create ef?cient algorithm to fnd redundancies

Fnd the redundancies m1, · · · , mn that are within the available budget and that maximize probability that system works correctly. Create an ef?cient algorithm.

  Create greedy algorithm-multiple breakpoint distance problem

Breakpoints between pi and p. Create greedy algorithm for Multiple Breakpoint Distance problem and estimate its approximation ratio.

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