   Chapter 12.1, Problem 39ES ### Discrete Mathematics With Applicat...

5th Edition
EPP + 1 other
ISBN: 9781337694193

#### Solutions

Chapter
Section ### Discrete Mathematics With Applicat...

5th Edition
EPP + 1 other
ISBN: 9781337694193
Textbook Problem
1 views

# In 31—39, write a regular expression to define the given set of strings. Use the shorthand notations given in the section whenever convenient. In most cases, your expression will describe other strings in addition to the given ones, but try to make your answer fit the given strings as closely as possible within reasonable space limitations. 39. All signed or unsigned numbers with or without a decimal point. A signed number has one of the prefixes + or —, and an unsigned number does not have a prefix. Represent the decimal point as \. to distinguish it from the single dot symbol for an arbitrary character.

To determine

Write a regular expression to define the given set of strings. Use the shorthand notations given in the section when ever convenient. In most cases, your expression will describe other strings in addition to the given ones. but try to make your answer fit the given strings as closely as possible wïthin reasonable space limitations.

All signed or unsigned numbers with or without a decimal point. A signed number has one of the prefixes + or  ,and an unsigned number does not have a prefix Represent the decimal point as \ to distinguish it from the single dot symbol for an arbitrary character.

Explanation

Given information:

All signed or unsigned numbers with or without a decimal point. A signed number has one of the prefixes + or  ,and an unsigned number does not have a prefix Represent the decimal point as \ to distinguish it from the single dot symbol for an arbitrary character.

Concept used:

A signed number has one of the prefixes + or, and an unsigned number does not have a prefix”.

Calculation:

It is required to write a regular expression using short hand notation to define a given set of strings which are expressed in words as “all signed or unsigned numbers with or without a decimal point. A signed number has one of the prefixes + or , and an unsigned number does not have a prefix. A solution for the given statement is

([+]|ε)[

### Still sussing out bartleby?

Check out a sample textbook solution.

See a sample solution

#### The Solution to Your Study Problems

Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!

Get Started 