aboutsummaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
Diffstat (limited to 'README.org')
-rw-r--r--README.org57
1 files changed, 57 insertions, 0 deletions
diff --git a/README.org b/README.org
new file mode 100644
index 0000000..01bc3ce
--- /dev/null
+++ b/README.org
@@ -0,0 +1,57 @@
1#+title: Regular expressions
2#+subtitle: Non-deterministic and deterministic finite state machines
3#+date: 2025H1
4
5* Task
6:PROPERTIES:
7:CUSTOM_ID: task
8:END:
9Construct a regular expression, then a non-deterministic finite state
10machine, and determinize it (transitions can be specified using
11ranges). Implement a program that checks the entered text using the
12finite state machine implementation (output options: the string
13matches, does not match, characters are not from the alphabet). It is
14also necessary to implement a function for randomly generating a valid
15string based on the resulting finite state machine.
16
17Examples of correct strings:
18#+begin_example
19https://docs.google.com/document/d/1poUMiPBYm/edit?usp=sharing&sd=true
20https://docs.google.com/document/d/1poUMiPm-wfYTyTf6NFtPwbWEae_/preview
21http://docs.google.com/document/d/1po-MiPBwUfY5MUTyTf6NFtPwbWEae_/copy
22docs.google.com/document/d/1po-UMiPBYmfY5MlaksjdshUTywTf6NFtPwbWEae_/export?
23docs.google.com/document/d/1po-UMiPBYmfY5MUsdfTywTf6NFtPwbWEae_
24docs.new
25http://docs.new/
26https://docs.new//
27#+end_example
28
29There are 3 possible protocol specifications:
30- an empty string
31- =http​://=
32- =https​://=
33
34There are 2 different inputs:
35- =docs.new= -- only the characters =/=.
36- =docs.google.com=, then:
37 1. must be =/document/d/=,
38 2. must be a document identifier
39 3. an optional path command after =/=
40 4. optional options after =?=
41
42* Documentation
43:PROPERTIES:
44:CUSTOM_ID: documentation
45:END:
46The exported report can be found at [[https://git.michalec.dev/files/uni/term-06/math-logic/lab-02/report.pdf][this link]].
47
48* Showcase
49:PROPERTIES:
50:CUSTOM_ID: showcase
51:END:
52
53* Unlicense
54:PROPERTIES:
55:CUSTOM_ID: unlicense
56:END:
57#+include: UNLICENSE verse