Chapter 2_Formal Languages, Alphabets, String, and Notation

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

Alphabet

It is defined as a finite set of symbols.

2
New cards

Alphabet

any nonempty finite set.

3
New cards

Symbols

The members of the alphabet are the _______ of the alphabet. Denoted by ⅀

4
New cards

String

A "______" over an alphabet is a finite sequence of symbols from that alphabet, which is usually written next to one another and not separated by commas

5
New cards

Length

The "______" of a string is its length as a sequence. The length of a string w is written as |w|

6
New cards

Reverse string

“krob” is “bork”

7
New cards

Substring

z is a _________ of w if z appears consecutively within w. • Example: If ∑a = {a, b, ..., z) then "deck" is a substring of "abcdeckabcjkl"

8
New cards

Concatenation

the string obtained by appending y to the end of x, as in x1x2...xm y1 y2... yn

9
New cards

Suffix

last letter of the string

10
New cards

Prefix

first letter of the string