Give string that contains more dashes than dots

Assignment Help Computer Engineering
Reference no: EM1328998

Consider a language of words, where each word is a string of dots and dashes. The following grammar describes this language:

< word> = < dot> | < dash> < word> | < word> < dot>
< dot> = .
< dash> = -

a) Write all three-character strings that are in this language.
b) Is the string .... in this language? Explain.
c) Write a seven-character string that contains more dashes than dots and is in the language. Show how you know that your answer is correct.
d) Write pseudocode for a recursive function isIn(str) that returns true if the string str is in this language and returns false otherwise.

Reference no: EM1328998

Questions Cloud

Effective business strategies to achieve it strategies : Discuss what you think are the most important leadership characteristics on that list and in forming effective business strategies appropriate to achieve those IT strategies.
A well known business person walks : A well known business person walks into your business and asks to speak to the owner. He introduces himself as John Doe and would like to talk to you in private. Mr. Doe is retiring and is closing his business that was located just down the street,
Rate and the mechanics'' performance : Electronic Unit Pricing in Supply Chain Management; Honda Allowed Mechanic's Rate - What is your opinion of Honda's allowed rate and the mechanics' performance?
Find out an output which maximizes the total revenue : Find out an output which maximizes the total revenue. Calculate the price elasticity of demand at this output.
Give string that contains more dashes than dots : Write down a seven-character string that contains more dashes than dots and is in the language. Show how you know that your reply is correct.
Service operations queues : How are people waiting in queues in service operations similar to buffering inventories in manufacturing and in what ways are they different
Organizational culture increase organizational effectiveness : In what ways can organizational culture increase organizational effectiveness?
List the factors that control governmental risk : List the factors that ontrol governmental risk
How to adapt for large-scale transnational it projects : What aspects of your project communications planning would you adapt for large-scale transnational IT projects in that the project teams and other stakeholders are geographically dispersed (say in India, Canada, China and Brazil) and having differ..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Communicate to database engine via visual basic

The most internationally standardized language in order to communicate to the database engine is Visual Basic. Describe why would it be useful in order to have Data Sources window open?

  Risk assessment of ict system

Risk Assessment of ICT System and Developing Computer Incident Response System on WAMP platform

  Routing process

Access control is handled at the ____ layer at the time of routing process; the router consults the list of rules before forwarding the incoming packet.

  What do mean by digital stratigraphy

What is digital stratigraphy? Give an instance to illustrate how digital stratigraphy is important in the field of Computer Forensics.

  Express a mechanism to access the telephone customer

express a mechanism to access the telephone customer.describe your selection and discuss the speed of the search operation. Keep in mind that a million records cannot be kept in one array. There is no need to code in C++.

  Digital technique for transmission of voice-telephone system

State four benefits and one de-merits of utilizing the digital (rather than analog) techniques for transmission of the voice-telephone signals.

  How could one improve such protocol

Considering the performance of a communincation protocol design, how may the number of messages have potentially the largerst impact as compared to the total amount of data.

  Describe python modules and packages

Describe Python modules and packages

  Administration, performance for the database

According to you what would be the inherent problems of the database auditing if program was not implemented with the careful thought and consideration? Consider administration, performance, and other factors.

  Creating new information technology systems for a company

Creating new information technology systems for a company requires the staff to understand reasoning and operation of the systems in which they interact. How will you create the support needed to create the recommended information systems and prep..

  Show how to find out such a seating arrangement

Show how to find out such a seating arrangement and prove that no such seating plan is possible.

  How various cells can be in a computer''s main memory

Suppose a machine has 20GB of storage space available on a hard disk and receives data over a telephone connection at the rate of 14,400 bps. At this rate, how long will it take to fill the available storage space.

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