Back to marketplace

Regular languages

No description yet. This curated deck is ready for daily study.

Total cards: 16•Content version: v3•Public deck•Updated: 8/1/2026

Card preview (16)

#1
Front (Question)

Define a finite state machine

Back (Answer)

An abstract model of computation that is used to model logic

#2
Front (Question)

When is a language considered regular?

Back (Answer)

Only if it can be recognised by a FSM

#3
Front (Question)

Define regular languages

Back (Answer)

A formal language compromised of a set of strings

#4
Front (Question)

What’s a state transition diagram?

Back (Answer)

A model of a finite state machine

#5
Front (Question)

What’s an accepting state?

Back (Answer)

Indicated by a double circle, it’s reached when a valid string is entered

#6
Front (Question)

What’s a Mealy machine?

Back (Answer)

A FSM which produces an output determined by its current state and the input

#7
Front (Question)

Define regular expressions

Back (Answer)

A compact notation to describe a set of strings that make up a regular language

#8
Front (Question)

How do regular expressions work?

Back (Answer)

They work on the principle of providing characters that must be matched

#9
Front (Question)

What are regular expressions used for?

Back (Answer)

Searching strings, Implementing find & replace functions, validating user input

#10
Front (Question)

What are metacharacters?

Back (Answer)

Symbols used to help you interpret regular expressions

#11
Front (Question)

+

Back (Answer)

One or more preceding characters/ group of characters

#12
Front (Question)

*

Back (Answer)

Zero or more of the preceding characters/group of characters

#13
Front (Question)

?

Back (Answer)

Zero or one of the preceding characters/ group of characters

#14
Front (Question)

|

Back (Answer)

Alternation (what is on the left or what is on the right)

#15
Front (Question)

()

Back (Answer)

Defines a group

#16
Front (Question)

Which direction are regular expressions evaluated?

Back (Answer)

Left to right