Why term would be important and relevant in the design

Assignment Help Computer Engineering
Reference no: EM131824456

Assignment

1. Comment briefly on the role of "syntax" and "semantics" in each of the following scenarios. [NOTE: We are not looking for very deep answers here, just for evidence that you have a good understanding of the basic concepts. A couple of sentences for each scenario should be sufficient.]

a) The tenant in a recently constructed house uses a voice activated assistant to turn on the lights and to adjust the thermostat temperature in their home. (Think of systems like Amazon Alexa, Apple Siri, Google Assistant, or Microsoft Cortana.)

b) A person types the address of the Portland State University home page into a browser on a computer at their local public library.

c) The IRS allows people to submit the information for their tax returns via an online system. An advantage for taxpayers is that the system gives them a prompt notification if it finds any errors in their return, and then provides an opportunity for them to submit a corrected version.

d) An innovative start up is using artificial intelligence to generate two sentence summaries of news articles that are published on major web sites.

2. For each of the following items, explain what the term refers to and why it would be important and/or relevant in the design of a practical programming language:

a) concrete syntax
b) abstraction
c) static semantics
d) dynamic semantics

3. Recall the Prop language of propositional/digital logic whose abstract syntax is described in Haskell by the following definition:

data Prop = FALSE | TRUE | IN String | NOT Prop | OR Prop Prop | AND Prop Prop

For each of the following Boolean-valued expressions (written C/C++ syntax with capital letters denoting parameters/inputs to the circuit being represented), write the associated Haskell expression of type Prop and draw the corresponding AST:

a) !(A || A)
b) !(!A && !!B)
c) A && !B || C

4. Build a circuit using the abstract syntax for Prop to test if two inputs are equal. Justify that your circuit is correct.

5. Is it possible to construct an expression in the Prop language that could produce an infinite sequence of steps in the normalization procedure described in the lectures? Justify your answer.

Reference no: EM131824456

Questions Cloud

Identify suppliers and input for each process : Identify suppliers and input for each process. Identify outcomes and customers for each process. List key stages in each process.
Would you lend money to this company for the long term : Do you feel that the company is able to meet its current and long term obligations as they become due?
Aspects of the human-caused global warming : Considering what we've learned about externalities, should human-caused global warming be completely stopped? Explain, using the language of social benefits.
Give an example of two random variables : Give an example of two random variables Y and Z such that E(Y 2) > E(Y )2 and E(Z2)
Why term would be important and relevant in the design : For each of the following items, explain what the term refers to and why it would be important and relevant in the design of a practical programming language.
What is deer track park net income : Deer Track Park is a private camping ground near the Lathom Peak Recreation Area. What is Deer Track Park's net income for 2012
Discuss the different types of sampling techniques : Discuss the different types of sampling techniques that are used in field research.Which type would be your preferred choice of said technique and explain why.
Definition of expected value to calculate e : Use the definition of expected value to calculate E(X). What is strange about this? What problem does it reveal with this betting scheme?
Problem on labor-management disputes : Suppose that the family clearly possesses the right to a pleasant-smelling environment. Does this mean that the factory will be required to stop producing.

Reviews

Write a Review

Computer Engineering Questions & Answers

  The organization requires a domain name

find out what domain name is available for the company. Judge whether you would use a .com, .org, or .net for the Web address.The organization requires a domain name

  Pros of the just-in-time inventory management system

What does just-in-time inventory management have to do with Carle Heart Center in Urbana, Illinois? The Carle Heart Center is one of the most sophisticated cardiac-care facilities in the Midwest

  Plan and implement a stringed musical instrument class

Plan and implement a stringed musical instrument class

  Show the simulation code and output

MAP 6264 Homework. Specifically, let W(n) denote the average waiting time (in units of average service time) for those customers who receive service (that is, those customers who do not overflow the buffer) when the capacity of the buffer is n; an..

  What is effect of memory organization on microinstruction

Assume that ASC memory is built by (two-way) interleaving two 32 Kwords blocks. What is the effect of this memory organization on the microinstruction sequence.

  What are the disadvantages to database encryption

What are the disadvantages to database encryption? Describe some of the main cloud-specific security threats.

  Determine how power-failure interrupt is generate and handle

Look up the details of the power-failure detection circuitry of a computer system you have access to, to determine how a power-failure interrupt is generated.

  Minimize the total cost

The problem is to assign the people to the jobs to minimize the total cost of the assignment. Express the assignment problem as a 0-1 linear programming problem

  Where the size is the number of doubles to be sorted

Asks for values and stores them into an array of double. Sorts the values in ascending order according to the following algorithm, where size is the number of doubles to be sorted.

  Describe the two features of the windows firewall

Describe, in your own words, the two features of the Windows Firewall in Windows Server 2012 that you believe are most useful to users.

  Binary hypercube and a barrel shifter

Consider an illiacmesh (8*8) ,a binary hypercube and a barrel shifter, all with the 64 nodes labelled n0,n1…n63.all network links are bidirectional.

  Prepare functional specifications for the companys use of

you are to select one business thatnbspdoes not alreadynbsphave a websitenbspand develop an internet strategy for it.

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