1

Let . For each of the following, find a regular expression representing it:

  1. All strings that do not contain the substring .
  2. Strings that contain at least one and do not end with .
title: Incorrect answers(?)
Use Regex equivalence checker.

2

Convert into a finite automata accepting it.

digraph {
	rankdir=LR
	init[shape=point]
	node[shape=doublecircle] t;
	node[shape=circle];
	init->s
	
	s->q [label=1]
	q->r [label=0]
	r->r [label=0]
	q->u [label=1]
	q->t [label=0]
	r->u [label=1]
	u->u [label=1]
}
title: Incorrect answer.