{"id":634,"date":"2015-10-17T13:39:29","date_gmt":"2015-10-17T11:39:29","guid":{"rendered":"http:\/\/www.mimuw.edu.pl\/~bojan\/?page_id=634"},"modified":"2015-10-26T17:27:34","modified_gmt":"2015-10-26T16:27:34","slug":"3-weighted-automata","status":"publish","type":"page","link":"https:\/\/www.mimuw.edu.pl\/~bojan\/20152016-2\/jezyki-automaty-i-obliczenia-2\/3-weighted-automata","title":{"rendered":"3. Weighted automata"},"content":{"rendered":"<p>In the following we write <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-4d8abdb80c786a20c7ca7e1ad558abd3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#105;&#101;&#108;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\"\/> to denote any field, but of course the example of the real numbers is the most natural one. Fix the field <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-4d8abdb80c786a20c7ca7e1ad558abd3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#105;&#101;&#108;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\"\/> for the rest of the lecture.<\/p>\n<p>A\u00a0<em>weighted automaton<\/em>\u00a0consists of the following ingredients:<br \/>\n\u2022 an input alphabet, which is a set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-aeb6fee794feaade92eebde4e9865fd9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#83;&#105;&#103;&#109;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\"\/>;<br \/>\n\u2022 a set <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 states, which is a vector space over <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-4d8abdb80c786a20c7ca7e1ad558abd3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#105;&#101;&#108;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\"\/>;<br \/>\n\u2022 an initial state <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-e680d3396108ecab7ad1bf91fb52920b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#113;&#95;&#48;&#32;&#92;&#105;&#110;&#32;&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"45\" style=\"vertical-align: -3px;\"\/>;<br \/>\n\u2022 for each letter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c93137d159f5917ab3023aedf59219c8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#105;&#110;&#32;&#92;&#83;&#105;&#103;&#109;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"38\" style=\"vertical-align: -1px;\"\/>, a <em>linear transition function<\/em> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f349c206d79d4f7204685f38b919d187_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#101;&#108;&#116;&#97;&#95;&#97;&#32;&#58;&#32;&#81;&#32;&#92;&#116;&#111;&#32;&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"76\" style=\"vertical-align: -3px;\"\/>;<br \/>\n\u2022 a linear <em>output function<\/em> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3496e3a7e1057e20ddecc511f7e4a17d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#32;&#58;&#32;&#81;&#32;&#92;&#116;&#111;&#32;&#92;&#102;&#105;&#101;&#108;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"73\" style=\"vertical-align: -3px;\"\/>.<\/p>\n<p>An automaton is called <em>finite\u00a0<\/em>if the input alphabet has finitely many elements and the vector space has finite dimension.<\/p>\n<p>(One could consider a slightly more uniform and general definition, where the input alphabet is also a vector space, and the transition function is a linear map <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-84f7bb71f0f15d92b74bd8bffaf7ae06_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#32;&#92;&#116;&#111;&#32;&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"79\" style=\"vertical-align: -3px;\"\/>. The case of finite input alphabets would be recovered by viewing an input letter as one of the base vectors in the vector space <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b948c1c43c36c4066f8a07018b706ddd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#92;&#83;&#105;&#103;&#109;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"20\" style=\"vertical-align: 0px;\"\/> of finite dimension.)<\/p>\n<p><span style=\"line-height: 1.5;\">The semantics if a weighted automaton is a function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-823fd0051bd3e3e21aa8435ad2bc5d2a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#42;&#32;&#92;&#116;&#111;&#32;&#92;&#102;&#105;&#101;&#108;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"53\" style=\"vertical-align: -1px;\"\/> defined as follows. When given an input word, the automaton<\/span><span style=\"line-height: 1.5;\">\u00a0begins in the initial state <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8a6486cc0b4f558c9c2cc2b5eecbc434_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#113;&#95;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"13\" style=\"vertical-align: -3px;\"\/>. Then for every new 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;\"\/>, it applies the transition function <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;\"\/> to the current state, yielding a new state. Finally, it applies the output function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ae6372ee44cf8170fd10796a10093995_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/> to the state at the end, yielding an element of the underlying field.\u00a0<\/span><\/p>\n<p><strong>Example.\u00a0<\/strong>A normal DFA with <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;\"\/> states can be viewed as a special case of a weighted automaton. The set of stats will be <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;\"\/>, and the reachable ones will only be vectors which have zero on all coordinates except the coordinate corresponding to the current state. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b06cee67d5b1a769f0a344ace98d5692_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#66;&#111;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\"\/><\/p>\n<p>In this lecture, we make the following points:<\/p>\n<ol>\n<li><a href=\"http:\/\/www.mimuw.edu.pl\/~bojan\/20152016-2\/jezyki-automaty-i-obliczenia-2\/3-weighted-automata\/syntactic-weighted-automata\">Weighted automata admit minimisation;<\/a><\/li>\n<li><a href=\"http:\/\/www.mimuw.edu.pl\/~bojan\/20152016-2\/jezyki-automaty-i-obliczenia-2\/3-weighted-automata\/finite-dimension\">For finite automata, some questions are decidable;<\/a><\/li>\n<li>For finite automata, some questions are undecidable.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the following we write to denote any field, but of course the example of the real numbers is the most natural one. Fix the field for the rest of the lecture. A\u00a0weighted automaton\u00a0consists of the following ingredients: \u2022 an input alphabet, which is a set ; \u2022 a set of states, which is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":535,"menu_order":3,"comment_status":"open","ping_status":"open","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-634","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/634"}],"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=634"}],"version-history":[{"count":35,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/634\/revisions"}],"predecessor-version":[{"id":729,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/634\/revisions\/729"}],"up":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/535"}],"wp:attachment":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/media?parent=634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}