[[https://www.fel.cvut.cz/cz/education/rozvrhy-ng.B171/public/cz/predmety/46/85/p4685106.html|Timetable at FEE]] [[https://www.fel.cvut.cz/cz/education/rozvrhy-ng.B171/public/cz/paralelky/P46/85/par4685106.1.html|Students of ePAL]] [[https://cw.felk.cvut.cz/brute/|Upload system BRUTE]] [[https://cw.felk.cvut.cz/forum/forum-1442.html|Discussion board]] ---- ==== Practices ==== === The Basics === **Introduction and repetitions**\\ * Asymptotic complexity recap. Training problems {{:courses:ae4m33pal:seminars:semComplexityNoSol.pdf| are here}}. * Graphs and their representations, BFS, DFS. Solve {{:courses:ae4m33pal:seminars:cv01e.docx| example exam problems}}. Additional training problems {{:courses:ae4m33pal:seminars:2012cvGraphs.pdf| can be found here.}} * For more thorough or necessary basic acquaintance with the related topics consult the book **[[http://larc.unt.edu/ian/books/free/poa.pdf| Problems on Algorithms]]**. Student are expected to be able to solve any problem marked by one cap in chapters 2. and 3. both during the semester and at the exam. We recommend problems 64. - 66., 144. - 148., 163. - 170. as an easy start. **Upload system**\\ * An introduction to Upload system, 0-th programming optional (not graded) task, its specification can be found [[http://cw.felk.cvut.cz/courses/a4m33pal/task.php?task=fence|here]].\\ Write a program that solves the task. Upload it and check how the system asseses it. Follow strictly the rules specified on page [[courses:be4m33pal:seminars:upload_system|Upload System.]]\\ **Training homework problem**\\ * The solution and submission is not mandatory and it is not graded if submitted. The problem itself is extremely simple, you can utilize it is to get acquainted with the upload system. [[courses:be4m33pal:seminars:upload_system|Upload System.]] \\ [[http://cw.felk.cvut.cz/courses/a4m33pal/task.php?task=fence|Problem statement and public data]] ---- === 1st week === * Spanning trees and minimum spanning trees of graphs: {{:courses:ae4m33pal:seminars:kostrye.doc| example problems}}. More problems for training {{:courses:ae4m33pal:seminars:2012cvSTree.pdf| here.}} **First homework problem**\\ [[https://cw.felk.cvut.cz/brute/data/ae/release/2018z_b4m33pal/b4m33pal_2018z/evaluation/input.php?task=MSTpath|Minimum Spanning Tree with Optimal A-B Connection]] {{ :courses:be4m33pal:datapub2.zip | public data }} **Exam topics**\\ * Asymptotic notations, asymptotic complexity, graph representations. * Boruvka's, Kruskal's, Prim's algorithms. Their implementation and data structures, ie. priority queues and Union-Find. * Prim's algorithm without a queue. * Union-Find implementations. ---- === 2nd week === * Directed graphs, strongly connected components, Eulerian graphs {{:courses:ae4m33pal:seminars:cvorigfye.doc| example problems }}. * Additional problems for training {{:courses:ae4m33pal:seminars:2012cvoriggfynosol.pdf| here}}\\ **Exam topics**\\ * Eulerian graph (directed and undirected), Eulerian path/cycle, method of finding them. * Strong and weak connectivity, strong and weak components, graph condensation. Algorithms which find strong components or produce a condensation. * Topological ordering of a graph using DFS or using gradual roots/leaves removal. ---- === 3rd week === * Binary, d-ary, binomial heaps. Fibonacci heaps. {{:courses:ae4m33pal:seminars:haldye.docx| Example problems}}. * Additional problems for training {{:courses:ae4m33pal:seminars:2012cvheapsnosol.pdf| here}} **Second homework problem**\\ [[https://cw.felk.cvut.cz/brute/data/ae/release/2018z_b4m33pal/b4m33pal_2018z/evaluation/input.php?task=bluepromenades|Blue Promenades]] **Exam topics**\\ * The heap rule. Standard operations on heaps. Binary, d-ary and binomial heap. * Binary and d-ary heap implemented in an array. * Fibonacci heap, amortized complexity of its operations. ---- === 4th week === * Graph and tree isomorphism. {{:courses:ae4m33pal:seminars:cvisoe.doc| Example problems}}. * Additional problems for training {{:courses:ae4m33pal:seminars:2012cvgraphisonosol.pdf| here}} \\ **Exam topics**\\ * Graph isomorphism, definition, invariants, algorithm for finding all isomorphisms. * Isomorphism and certificates of undirected trees, computing the certificate for a tree and reconstructing a tree from a certificate. ----- === 5th week === * Combinatorial generation of subsets, permutations and their ranks. {{:courses:ae4m33pal:seminars:kombi1e.docx| Example problems}}. * Additional problems for training {{:courses:ae4m33pal:seminars:2012cvcombialgnosol.pdf|here}} \\ **Kreher, Stinson: Combinatorial Algorithms, notes:**\\ * {{:courses:ae4m33pal:seminars:kresti30.pdf| page 30, 31}} * {{:courses:ae4m33pal:seminars:kresti32.pdf| page 32, 33}} * {{:courses:ae4m33pal:seminars:kresti34.pdf| page 34, 35}} * {{:courses:ae4m33pal:seminars:kresti36.pdf| page 36, 37}} * {{:courses:ae4m33pal:seminars:kresti38.pdf| page 38, 39}} * {{:courses:ae4m33pal:seminars:kresti40.pdf| page 40, 41}} * {{:courses:ae4m33pal:seminars:kresti42.pdf| page 42, 43}} * {{:courses:ae4m33pal:seminars:kresti44.pdf| page 44, 45}} * {{:courses:ae4m33pal:seminars:kresti52.pdf| page 52, 53}} * {{:courses:ae4m33pal:seminars:kresti54.pdf| page 54, 55}} * {{:courses:ae4m33pal:seminars:kresti56.pdf| page 56, 67}} **Third homework problem**\\ [[https://cw.felk.cvut.cz/brute/data/ae/release/2018z_b4m33pal/b4m33pal_2018z/evaluation/input.php?task=treecycle|Isomorphism of Tree-Cycle Graphs]] **Exam topics**\\ * Combinations, variations, permutations with or without repetition, definitions, formulas. Binomial coefficients, their basic relations, Pascal triangle. * Operations(functions) Rank and UnRank for ordered permutations and k-element subsets of given set. * Gray code - definition, properties, operations Rank and UnRank. ---- === 6th week === * Finite automata and regular expressions. {{:courses:ae4m33pal:seminars:ata1e.docx| Example problems}}. * Additional problems for training {{:courses:ae4m33pal:seminars:2012cvfautomatanosol.pdf| here}}\\ **Exam topics**\\ * Deterministic and non-deterministic finite automaton (DFA and NFA), definition. Languages accepted by finite automata. * Algorithm for transforming NFA to DFA, simulation of NFA work without transformation to DFA. Epsilon-transitions and their removal from an automaton. * Regular expressions. Definition, algorithm for transformation of regular expression to NFA. ---- === 7th week === * Approximate pattern matching and language operations. {{:courses:ae4m33pal:seminars:ata2e.docx|Example problems }} * Text Searching. Additional problems for training {{:courses:ae4m33pal:seminars:2012cvfautomatanosol.pdf| here}}\\ **Fourth homework problem**\\ [[https://cw.felk.cvut.cz/brute/data/ae/release/2018z_b4m33pal/b4m33pal_2018z/evaluation/input.php?task=interword|Intermediate Words]] **Exam topics**\\ * Construction of NFA for pattern matching. Impelementation of NFA/DFA by a table or by code. * Hamming and Levenshtein distance. NFA/DFA for search of substrings which have nonzero distance from a given pattern. ---- === 8th week === * Approximate text searching {{:courses:ae4m33pal:seminars:ata3e.docx| example problems}}. * Additional problems for training {{:courses:ae4m33pal:seminars:2012cvapproxtextsearchingnosol.pdf| here}}. \\ **Exam topics**\\ * Finding dictionary entries in a text with the help of dictionary automaton. * Number of states of dictionary NFA, DFA. * Approximate text search based on previous methods. ---- === 9th week === Primes and pseudorandom numbers -- {{:courses:ae4m33pal:seminars:cvrndprimese.docx| Example problems }}. **Fifth homework problem**\\ [[https://cw.felk.cvut.cz/brute/data/ae/release/2018z_b4m33pal/b4m33pal_2018z/evaluation/input.php?task=stringfactorization|String Factorization]] **Exam topics**\\ * Generation of random numbers and prime numbers. Their properties. Prime factorization, exact and randomized primality tests. ---- === 10th week === * Skip List, B and B+ trees {{:courses:ae4m33pal:seminars:cv11_2015e.docx| example problems}}. **Exam topics**\\ * Skip list * Search trees B and B+. Asymptotic complexity of particular search tree operations. ---- === 11th week === * 2-3-4 trees and B+ trees, splay trees. Additional problems for training {{:courses:ae4m33pal:seminars:2012cvb234treesnosol.pdf|here}} \\ **Sixth homework problem**\\ **Exam topics**\\ 2-3-4 trees and B+ trees. Asymptotic complexity of particular search tree operations. ---- === 12th week === * KD trees, Nearest neighbours problem. {{:courses:ae4m33pal:seminars:stromy3e.docx| Example problems incl. previous week}}. **Exam topics**\\ KD trees, search for Nearest Neighbour in 2D. ---- === 13th week === **In preparation**\\ * Trie, suffix trie, binary trie **Exam topics**\\ * Trie, suffix trie, binary trie ---- === 14th week === **In preparation**\\ * Radix trie, Patricia trie, segment tree. **Exam topics**\\ * Radix trie, Patricia trie, segment tree. ----