{"id":666,"date":"2015-10-17T13:41:09","date_gmt":"2015-10-17T11:41:09","guid":{"rendered":"http:\/\/www.mimuw.edu.pl\/~bojan\/?page_id=666"},"modified":"2015-10-26T17:26:34","modified_gmt":"2015-10-26T16:26:34","slug":"finite-dimension","status":"publish","type":"page","link":"https:\/\/www.mimuw.edu.pl\/~bojan\/20152016-2\/jezyki-automaty-i-obliczenia-2\/3-weighted-automata\/finite-dimension","title":{"rendered":"Finite dimension \u2013 decidable problems"},"content":{"rendered":"<p>Here we study weighted automata which are finite, in the sense that the input alphabet is finite and the state space is of finite dimension. We also assume that the field is the field of reals.<\/p>\n<p>A finite automaton can be represented in a finite way, call this the <em>matrix representation<\/em>. The state space must be isomorphic to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1a26f947d142a8a62b62447d6287eab2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"18\" style=\"vertical-align: 0px;\"\/>, since these are the vector spaces of finite dimension. Therefore, it suffices to store <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>. For each input letter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b9876851baf92019e82e43590932dc73_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/>, the\u00a0transition function is a linear function <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 14px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7cae716ac99c0ffc1ea9433dc4ed2708_l3.png\" height=\"14\" width=\"89\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#100;&#101;&#108;&#116;&#97;&#95;&#97;&#32;&#58;&#32;&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#110;&#32;&#92;&#116;&#111;&#32;&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#110;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> which can be stored as a matrix. (Here we assume that the entries of the matrix can be represented, which means either that we restrict to rational numbers, or use some computation model that can deal directly with real numbers.)<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>Computing reachable states<\/strong><\/p>\n<p>Let us begin with a simple algorithm for finite weighted automata \u2013 we want to compute the linear combinations of reachable states. This is a simple saturation procedure. We begin with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b27da248792cb2d609a2682a5e1549dd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;&#95;&#48;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"52\" style=\"vertical-align: -3px;\"\/> being the singleton of the initial state. Then, assuming that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-0433505e39309f165b2b0ceeac4d0ba2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;&#95;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"16\" style=\"vertical-align: -3px;\"\/> has already been defined, we define <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-22f0e6969bf3b31902cf0a7b72981c32_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;&#95;&#123;&#105;&#43;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"31\" style=\"vertical-align: -4px;\"\/> to be the vector space spanned by <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 35px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8cb468ed1ae3ace4f6cc48ebe557f162_l3.png\" height=\"35\" width=\"102\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#81;&#95;&#105;&#32;&#92;&#99;&#117;&#112;&#32;&#92;&#98;&#105;&#103;&#99;&#117;&#112;&#95;&#123;&#97;&#32;&#92;&#105;&#110;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#125;&#32;&#92;&#100;&#101;&#108;&#116;&#97;&#95;&#97;&#32;&#40;&#81;&#95;&#105;&#41;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> This way we get a growing chain of linear subsets <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 14px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2f6d4410ecfd44f0e2d92a9bc6eecca2_l3.png\" height=\"14\" width=\"134\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#81;&#95;&#49;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#81;&#95;&#50;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#81;&#46;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> Since the dimension cannot grow indefinitely, this sequence must stabilise at some point, and this point is the set of reachable states. Furthermore, if the original automaton is given by a\u00a0matrix representation, then one can compute the sets <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-0433505e39309f165b2b0ceeac4d0ba2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;&#95;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"16\" style=\"vertical-align: -3px;\"\/>.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Computing automaton equivalence<\/strong><\/p>\n<p>Here is a corollary of the\u00a0reachability algorithm. Suppose we want to test if two automata define the same function. We can define the product automaton, with states being pairs of stats from the two automata, and the output function being defined as <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 16px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a775d3ff6c0460c65a840b324d38c0e1_l3.png\" height=\"16\" width=\"235\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#40;&#113;&#95;&#49;&#44;&#113;&#95;&#50;&#41;&#32;&#92;&#113;&#113;&#117;&#97;&#100;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#92;&#113;&#113;&#117;&#97;&#100;&#32;&#70;&#95;&#49;&#40;&#113;&#95;&#49;&#41;&#32;&#45;&#32;&#70;&#95;&#50;&#40;&#113;&#95;&#50;&#41;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2cc1e2b683a7a5b840858fc675244d38_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#95;&#49;&#44;&#70;&#95;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"40\" style=\"vertical-align: -3px;\"\/> being the output functions of the two original automata. In the product automaton we compute the linear combinations of reachable states. The automata were equivalent if and only if, when restricted to those states, the new output function is zero everywhere.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Computing the minimal automaton<\/strong><\/p>\n<p>Here we show that minimisation is effective, i.e. if one gets a finite weighted automaton on input, one can produce (even in polynomial time) the minimal automaton. Observe that if a function is recognised by a finite dimensional weighted automaton, then its syntactic automaton has finite dimension. This is because linear functions cannot increase dimension.<\/p>\n<p>Consider a weighted automaton <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f16d6da9ded8f3e09765c12237d84d20_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: -1px;\"\/> with a state space <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-bed8547872890507f19a89d0b85aac65_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"12\" style=\"vertical-align: -3px;\"\/> of finite dimension. For a number <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-62b6f17bfcd8850245198c0e9bda84ce_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#32;&#92;&#105;&#110;&#32;&#92;&#78;&#97;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: -1px;\"\/>, we define states <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-91a8b9db137bf6fbfe87397315a10a9d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#113;&#44;&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"22\" style=\"vertical-align: -3px;\"\/> to be <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>-equivalent if <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 10px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c85b35c08a4fcd368762633f25d00c6a_l3.png\" height=\"10\" width=\"59\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#113;&#119;&#32;&#61;&#32;&#112;&#119;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> holds for all input words of length at most <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>, where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b36b0a599f394f288068eaf83e485685_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#113;&#119;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"19\" style=\"vertical-align: -3px;\"\/> if the output of the automaton after reading word <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-eedf2e7eca2b090be6b3ece6f6e31f7b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#119;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"11\" style=\"vertical-align: 0px;\"\/> assuming that the initial state was changed to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7b295853314f2d5a3c49b7e96e28be64_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#113;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"7\" style=\"vertical-align: -3px;\"\/>. This equivalence relation can be seen as a subset of <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 14px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b2f44a76aa8fdae1155a319d7404a54f_l3.png\" height=\"14\" width=\"87\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#69;&#95;&#110;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#81;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#81;&#46;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>. By linearity of the automaton, the subset is linear, i.e. it is closed under <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-909ec6ae6bc0ba0db91fe9749c8e277f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#43;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: -2px;\"\/> and multiplying by scalars. Therefore we have a sequence of subsets <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 14px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-41bb861d9f7d37377d2d91116e153a3f_l3.png\" height=\"14\" width=\"199\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#81;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#81;&#32;&#92;&#115;&#117;&#112;&#115;&#101;&#116;&#101;&#113;&#32;&#69;&#95;&#48;&#32;&#92;&#115;&#117;&#112;&#115;&#101;&#116;&#101;&#113;&#32;&#69;&#95;&#49;&#32;&#92;&#115;&#117;&#112;&#115;&#101;&#116;&#101;&#113;&#32;&#69;&#95;&#50;&#32;&#92;&#115;&#117;&#112;&#115;&#101;&#116;&#101;&#113;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> which are linear. Since each subset has a dimension, which is at most double the dimension of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-bed8547872890507f19a89d0b85aac65_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"12\" style=\"vertical-align: -3px;\"\/>, the sequence above must stabilise at some equivalence relation, call it \u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d9c1fe211376874f84471cc4d6ea91c5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#69;&#95;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"18\" style=\"vertical-align: -2px;\"\/>, which is\u00a0the Myhill-Nerode equivalence relation. Furthermore, a representation of this <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d9c1fe211376874f84471cc4d6ea91c5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#69;&#95;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"18\" style=\"vertical-align: -2px;\"\/> can be computed in time polynomial in the dimension of the original automaton. The remaining description is essentially book-keeping: we prove that there is a well-defined quotient automaton, and that a matrix representation of it can be computed based on a matrix representation of the original automaton.<\/p>\n<p>Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-400b54e107efb6bb3447fd3e99628448_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#81;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"18\" style=\"vertical-align: -4px;\"\/> be the set of equivalence classes of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-bed8547872890507f19a89d0b85aac65_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"12\" style=\"vertical-align: -3px;\"\/> with respect to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d9c1fe211376874f84471cc4d6ea91c5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#69;&#95;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"18\" style=\"vertical-align: -2px;\"\/>, and let<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 16px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-beced8e1ea66d5f6f264ef9cdd66bd4a_l3.png\" height=\"16\" width=\"77\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#104;&#32;&#58;&#32;&#81;&#32;&#92;&#116;&#111;&#32;&#91;&#81;&#93;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> be the function which maps a state to its equivalence class.\u00a0Because <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d9c1fe211376874f84471cc4d6ea91c5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#69;&#95;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"18\" style=\"vertical-align: -2px;\"\/> is an equivalence relation and a linear set, the set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-400b54e107efb6bb3447fd3e99628448_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#81;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"18\" style=\"vertical-align: -4px;\"\/> is a vector space, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-60f817b38fe1ea150775070c85afb9ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"9\" style=\"vertical-align: 0px;\"\/> is a linear function.\u00a0What is the dimension of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-400b54e107efb6bb3447fd3e99628448_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#81;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"18\" style=\"vertical-align: -4px;\"\/> and how do we represent it and the function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-60f817b38fe1ea150775070c85afb9ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"9\" style=\"vertical-align: 0px;\"\/>, assuming that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-68ffec326e4bbcfe56322b7861c25d59_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;&#32;&#61;&#32;&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"51\" style=\"vertical-align: -3px;\"\/> for some <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>? One solution is the following. Begin with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-19b05d631b5bf57a37c7695615ec2b6b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/> being some basis of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-bed8547872890507f19a89d0b85aac65_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"12\" style=\"vertical-align: -3px;\"\/>, e.g. the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/> vectors which have <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2807c0cf30a938b52105c42c9e2dd2db_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: -1px;\"\/> on a unique coordinate. Then, iterate the following: check if there is some <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-9a7ccced936e22824d29b0f25ed35f87_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;&#32;&#92;&#105;&#110;&#32;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"38\" style=\"vertical-align: -1px;\"\/> which is equivalent under <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d9c1fe211376874f84471cc4d6ea91c5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#69;&#95;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"18\" style=\"vertical-align: -2px;\"\/> to a linear combination of other elements of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-19b05d631b5bf57a37c7695615ec2b6b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/>. If there is no such <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d164b13e13a51517b6039136e0a957b5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"7\" style=\"vertical-align: 0px;\"\/>, then return <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-19b05d631b5bf57a37c7695615ec2b6b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/>, otherwise remove one such <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d164b13e13a51517b6039136e0a957b5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"7\" style=\"vertical-align: 0px;\"\/> from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-19b05d631b5bf57a37c7695615ec2b6b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/> and continue the process. At the end we get a subset <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2300eb95c17bef3289bf5d8947b48d3d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#66;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"45\" style=\"vertical-align: -3px;\"\/>, such that every element of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-bed8547872890507f19a89d0b85aac65_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"12\" style=\"vertical-align: -3px;\"\/> is equivalent under <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d9c1fe211376874f84471cc4d6ea91c5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#69;&#95;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"18\" style=\"vertical-align: -2px;\"\/> to a linear combination of vectors from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-19b05d631b5bf57a37c7695615ec2b6b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/>. In particular, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-400b54e107efb6bb3447fd3e99628448_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#81;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"18\" style=\"vertical-align: -4px;\"\/> is isomorphic to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-03977c6839dd68531ec933b093cdf2d2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"21\" style=\"vertical-align: 0px;\"\/>. Out of this process we also get a matrix representation of the function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-60f817b38fe1ea150775070c85afb9ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"9\" style=\"vertical-align: 0px;\"\/>, seen as a linear function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-54f4595191b073cd61c4e2ba7515d001_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#110;&#32;&#92;&#116;&#111;&#32;&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"65\" style=\"vertical-align: -1px;\"\/>.<\/p>\n<p>If we take two states that are equivalent under <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d9c1fe211376874f84471cc4d6ea91c5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#69;&#95;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"18\" style=\"vertical-align: -2px;\"\/>, and apply to them a transition function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-78cc7e9c69abf156f6d8332d7f577e13_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#101;&#108;&#116;&#97;&#44;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"11\" style=\"vertical-align: -3px;\"\/> then the results are also equivalent. This means that for every input letter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b9876851baf92019e82e43590932dc73_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/> there exists a function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ada4aedba0a9f410b27cdd9c2da0ab1b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#92;&#100;&#101;&#108;&#116;&#97;&#93;&#95;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"22\" style=\"vertical-align: -4px;\"\/> which makes the following diagram commute:<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 87px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-164b4891e216f4b5c0e33a79300f7f2c_l3.png\" height=\"87\" width=\"87\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#120;&#121;&#109;&#97;&#116;&#114;&#105;&#120;&#123;&#81;&#32;&#92;&#97;&#114;&#91;&#100;&#93;&#95;&#104;&#32;&#92;&#97;&#114;&#91;&#114;&#93;&#94;&#123;&#92;&#100;&#101;&#108;&#116;&#97;&#95;&#97;&#125;&#32;&#38;&#32;&#81;&#32;&#92;&#97;&#114;&#91;&#100;&#93;&#94;&#104;&#32;&#92;&#92;&#32;&#91;&#81;&#93;&#32;&#92;&#97;&#114;&#91;&#114;&#93;&#95;&#123;&#91;&#92;&#100;&#101;&#108;&#116;&#97;&#93;&#95;&#97;&#125;&#32;&#38;&#32;&#91;&#81;&#93;&#125;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>The function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ada4aedba0a9f410b27cdd9c2da0ab1b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#92;&#100;&#101;&#108;&#116;&#97;&#93;&#95;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"22\" style=\"vertical-align: -4px;\"\/> is also linear, because its graph, as a subset of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-0d0f9778b368e5ca83560dc94d44dd09_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#81;&#93;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#91;&#81;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"58\" style=\"vertical-align: -4px;\"\/>, is simply the image of the graph of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7853ad4fc309b17d783dc87f3a80cce6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#101;&#108;&#116;&#97;&#95;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"14\" style=\"vertical-align: -2px;\"\/> under <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-60f817b38fe1ea150775070c85afb9ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"9\" style=\"vertical-align: 0px;\"\/> applied coordinatewise. In particular, we can compute a matrix representing each function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ada4aedba0a9f410b27cdd9c2da0ab1b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#92;&#100;&#101;&#108;&#116;&#97;&#93;&#95;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"22\" style=\"vertical-align: -4px;\"\/>. \u00a0A similar argument proves that there is a linear function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a1033ccf55d1ae0c87727dd2e00f0b87_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#70;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"19\" style=\"vertical-align: -4px;\"\/> which makes the following diagram commute <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 79px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ab536e49483508fc337689272e321a74_l3.png\" height=\"79\" width=\"71\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#120;&#121;&#109;&#97;&#116;&#114;&#105;&#120;&#123;&#81;&#32;&#92;&#97;&#114;&#91;&#100;&#114;&#93;&#94;&#123;&#70;&#125;&#32;&#92;&#97;&#114;&#91;&#100;&#93;&#95;&#123;&#104;&#125;&#32;&#92;&#92;&#32;&#81;&#32;&#92;&#97;&#114;&#91;&#114;&#93;&#95;&#123;&#91;&#70;&#93;&#125;&#32;&#38;&#32;&#92;&#102;&#105;&#101;&#108;&#100;&#125;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> and a matrix representing it can be computed.<\/p>\n<p>This finishes the description of the algorithm for minimising finite weighted automata.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here we study weighted automata which are finite, in the sense that the input alphabet is finite and the state space is of finite dimension. We also assume that the field is the field of reals. A finite automaton can be represented in a finite way, call this the matrix representation. The state space must [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":634,"menu_order":1,"comment_status":"open","ping_status":"open","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-666","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/666"}],"collection":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/comments?post=666"}],"version-history":[{"count":4,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/666\/revisions"}],"predecessor-version":[{"id":728,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/666\/revisions\/728"}],"up":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/634"}],"wp:attachment":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/media?parent=666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}