subject
Computers and Technology, 29.07.2019 16:10 Hfruit

Consider the following regular expressions (i am omitting the dot operator) r0 = 0+1+2+3+4 r1 = 0+1+2+3+4+5 r2 = (0+1)(0*+1*) r3 = (0*+1*) r1 (0+1) r4 = 00 r3*(0+1)* r5 = r3* 000 r2* let gettoken() be a function that returns the next token in the input. if we call it repeatedly it will return one token after another. when all the input is consumed, gettoken() returns eof (end of file). assume that longest prefix-matching rule is used by assume that ties are broken in favor of the regular expression listed first in the list. 1. give an example of input for which gettoken() returns r0 2. give an example of input for which gettoken() returns r1 3. give an example of input for which gettoken() returns r2 4. give an example of input for which gettoken() returns r3 5. give an example of input for which gettoken() returns r4 6. give an example of input for which gettoken() returns r5 7. if gettoken() is called repeatedly on the following input, what is the sequence of tokens returned? in your work, show step by step the matched, the potential matched, and the maximal matched tokens. 00031010030030111001 for questions 1-6 you should explain your answers

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which one of the following would administrators use to connect to a remote server securely for administration? a. telnetb. secure file transfer protocol (sftp)c. secure copy (scp)d. secure shell (ssh)
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Consider the following function main: int main() { int alpha[20]; int beta[20]; int matrix[10][4]; . . } a. write the definition of the function inputarray that prompts the user to input 20 numbers and stores the numbers into alpha. b. write the definition of the function doublearray that initializes the elements of beta to two times the corresponding elements in alpha. make sure that you prevent the function from modifying the elements of alpha. c. write the definition of the function copyalphabeta that stores alpha into the first five rows of matrix and beta into the last five rows of matrix. make sure that you prevent the function from modifying the elements of alpha and beta. d. write the definition of the function printarray that prints any onedimensional array of type int. print 15 elements per line. e. write a c11 program that tests the function main and the functions discussed in parts a through d. (add additional functions, such as printing a two-dimensional array, as needed.)
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
You know the right answer?
Consider the following regular expressions (i am omitting the dot operator) r0 = 0+1+2+3+4 r1 = 0+1+...
Questions
question
Social Studies, 15.10.2019 01:10
Questions on the website: 13722363