{"id":1188,"date":"2016-12-27T15:58:03","date_gmt":"2016-12-27T14:58:03","guid":{"rendered":"https:\/\/www.mimuw.edu.pl\/~bojan\/?page_id=1188"},"modified":"2017-10-03T10:33:10","modified_gmt":"2017-10-03T08:33:10","slug":"tree-width","status":"publish","type":"page","link":"https:\/\/www.mimuw.edu.pl\/~bojan\/20152016-2\/jezyki-automaty-i-obliczenia-2\/monadic-second-order-logic-and-courcelles-theorem\/tree-width","title":{"rendered":"Tree width"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>In this page, we define tree decompositions and treewidth. We will define tree decompositions in two ways: less and more algebraically. The less algebraic way is more common in the literature, so we begin with that. The more algebraic way will be more convenient for our presentation of the Courcelle theorem, and is given later.<\/p>\n<hr \/>\n<p><strong>Tree width<\/strong><\/p>\n<p>Consider an undirected graph <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ef7dc8eeb66accf1fa3b705f6382f071_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#71;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/>. Define a\u00a0<em>tree decomposition<\/em> of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ef7dc8eeb66accf1fa3b705f6382f071_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#71;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/> \u00a0to be a tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> together with a labelling <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 15px;\"><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-0846e046362137b21a77f606f69e2f9c_l3.png\" height=\"15\" width=\"345\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#118;&#32;&#92;&#105;&#110;&#32;&#92;&#116;&#101;&#120;&#116;&#123;&#110;&#111;&#100;&#101;&#115;&#32;&#111;&#102;&#32;&#36;&#116;&#36;&#125;&#32;&#92;&#113;&#113;&#117;&#97;&#100;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#92;&#113;&#113;&#117;&#97;&#100;&#32;&#92;&#116;&#101;&#120;&#116;&#123;&#98;&#97;&#103;&#32;&#111;&#102;&#32;&#36;&#118;&#36;&#32;&#36;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#36;&#32;&#118;&#101;&#114;&#116;&#105;&#99;&#101;&#115;&#32;&#111;&#102;&#32;&#36;&#71;&#36;&#125;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> such that the following properties hold:<\/p>\n<ul>\n<li>every edge of \u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ef7dc8eeb66accf1fa3b705f6382f071_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#71;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/> is contained in bag of \u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/>;<\/li>\n<li>for every\u00a0vertex in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ef7dc8eeb66accf1fa3b705f6382f071_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#71;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: 0px;\"\/>, the set of nodes in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> whose bags contain <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8ecbc11e5f9047eaecdbfca853b87fd1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/> is connected via the child relation.<\/li>\n<\/ul>\n<p>As an example, consider the following graph:<\/p>\n<p><a href=\"http:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-03.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1178\" src=\"http:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-03.svg\" alt=\"mso-courcelle-03\" width=\"247\" height=\"364\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Here is a tree decomposition of the above graph:<\/p>\n<p><a href=\"http:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-04.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1179\" src=\"http:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-04.svg\" alt=\"mso-courcelle-04\" width=\"297\" height=\"497\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>In the above picture, the nodes are the blue circles, and the subgraphs induced by the bags are drawn inside the nodes. Define the <i>width\u00a0<\/i>of a tree decomposition to be the maximal size of a bag minus one. In the example above, the width is 2, because the maximal bag size is 3. (If you don&#8217;t like doing minus one, an alternative view is that the width is the maximal intersection of two bags of adjacent nodes.) The\u00a0<em>tree width\u00a0<\/em>of a graph is the minimal width of a tree decomposition of it.<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>Sourced graphs: an algebraic view of treewidth<\/strong><\/p>\n<p>We now present a more algebraic way of defining treewidth. Define a <em>sourced\u00a0graph\u00a0<\/em>to be a graph with some but not necessarily all vertices being assigned natural numbers; the vertices with numbers are called the <em>sources<\/em>. The numbers are called the <em>source\u00a0names.\u00a0<\/em>We assume that the each <em>source<\/em>\u00a0has one number; although the numbers used in a graph need not be a prefix of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-399f9b8ded66096de747352754f474d8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#101;&#116;&#123;&#48;&#44;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"61\" style=\"vertical-align: -4px;\"\/>.\u00a0A sourced graph with no sources is\u00a0the same thing as a graph. \u00a0Here is a picture of a sourced graph, with the\u00a0source names used being <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-0a83ffdcac8a1dc1bc98b33633bbdbd4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#101;&#116;&#123;&#49;&#44;&#50;&#44;&#52;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"51\" style=\"vertical-align: -4px;\"\/>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1181 aligncenter\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-05.svg\" alt=\"\" width=\"209\" height=\"283\" \/><\/p>\n<p>The main purpose of sourced graphs is to fuse them using a fusion operation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7e29eed7732a8b9b30daa68cfb644800_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#108;&#117;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: -2px;\"\/>. The operation inputs two sourced graphs. On the output, it\u00a0produces the disjoint union of the two inputs, with each pair of sources that have the same name being merged\u00a0together into a single vertex (when we merged\u00a0vertices <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8ecbc11e5f9047eaecdbfca853b87fd1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/> and <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;\"\/>, all edges incident with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8ecbc11e5f9047eaecdbfca853b87fd1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/> and <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;\"\/> are redirected to the new merged\u00a0vertex). The fusion operation can easily be extended to take not two arguments, but any number of arguments in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7a9c09e7b2b5bb4d2bb82346d87ae446_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#101;&#116;&#123;&#49;&#44;&#50;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"61\" style=\"vertical-align: -4px;\"\/>. When there is one argument, nothing happens.<\/p>\n<p>After doing a fusion, we might want to\u00a0<em>forget <\/em>some<em>\u00a0<\/em>source names. For this we use an extended <em>forgetting\u00a0<\/em>version of the fusion operation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c6abdfc87f4fc8cbcf579f56c9e2742d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#108;&#117;&#115;&#95;&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"22\" style=\"vertical-align: -2px;\"\/>, where the index is a set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-985853afefa0f9d11b09264aa12867af_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"14\" style=\"vertical-align: 0px;\"\/> source names, i.e. natural numbers. When this operation is applied, we first do the fusion as described above, and then we only keep the source names from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-985853afefa0f9d11b09264aa12867af_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"14\" style=\"vertical-align: 0px;\"\/>, while sources\u00a0with names outside <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-985853afefa0f9d11b09264aa12867af_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"14\" style=\"vertical-align: 0px;\"\/> become non-sources. Let us illustrate the forgetting fusion operation on an example. Consider the following two\u00a0sourced graphs:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1204 aligncenter\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-07-1.svg\" alt=\"\" width=\"290\" height=\"221\" \/><\/p>\n<p>Note that the two sourced graphs above share common source\u00a0names, namely\u00a02 and 4, while the source names 1 and 3 are not common. Therefore, when fusing\u00a0them we will do two merges: one for source name 2, and one for source name 4.\u00a0Suppose that the two sourced graphs above are combined\u00a0using the operation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-497ac04e9c59c42894917d72c2e92423_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#108;&#117;&#115;&#95;&#123;&#92;&#115;&#101;&#116;&#123;&#50;&#44;&#51;&#125;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"38\" style=\"vertical-align: -6px;\"\/>. The result will be the following interface graph.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-06-1.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1203 aligncenter\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-06-1.svg\" alt=\"\" width=\"299\" height=\"237\" \/><\/a><\/p>\n<p>The colours blue, yellow and green are supposed to indicate which of the inputs was used to produce which vertex, and they are not part of the actual\u00a0sourced graph.<\/p>\n<p><strong>Algebra of sourced graphs.\u00a0<\/strong>The set of sourced graphs can be viewed as an algebra, which we call the <em>algebra of sourced graphs.<\/em>\u00a0This algebra\u00a0has a constant for every sourced graph, and a binary operation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c6abdfc87f4fc8cbcf579f56c9e2742d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#108;&#117;&#115;&#95;&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"22\" style=\"vertical-align: -2px;\"\/> for every finite set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-985853afefa0f9d11b09264aa12867af_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"14\" style=\"vertical-align: 0px;\"\/> of source names. Here is an example of a term in the algebra of sourced graphs which generates a cycle of length 6:<\/p>\n<p><a href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-08.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1206\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-08.svg\" alt=\"\" width=\"559\" height=\"1142\" \/><\/a><\/p>\n<p><strong>Theorem.\u00a0<\/strong>A graph has treewidth <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-5fc287f6a1686dee0794a092dcc5d66b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"8\" style=\"vertical-align: 0px;\"\/> if and only if it (when viewed as a sourced graph without any sources) can be generated by a term in the algebra of sourced graphs, using only constants that have at most <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1beb6ded8f4202fb1db67c10538e95f5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#43;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"35\" style=\"vertical-align: -2px;\"\/> vertices and source names in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2bc613dbaebd4f3b4f33ff434a168960_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#101;&#116;&#123;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#107;&#43;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"92\" style=\"vertical-align: -4px;\"\/>.<\/p>\n<p><strong>Proof.\u00a0<\/strong>We only sketch the slightly more interesting top-down implication.\u00a0\u00a0Consider a tree decomposition (in the standard, non-algebraic way). We assume that it is rooted, so that we can speak about the subtree of a node. For node <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2780ef1cb525460253e4d12a2fa56ea2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>, define its cone to be the sourced graph which consists of the union of the bags in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2780ef1cb525460253e4d12a2fa56ea2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/> and its descendant,\u00a0and where the sources are those vertices that\u00a0appear both in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2780ef1cb525460253e4d12a2fa56ea2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/> and in the parent of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2780ef1cb525460253e4d12a2fa56ea2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>. Here is a picture:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1383\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/cones.svg\" alt=\"\" width=\"502\" height=\"463\" \/><\/p>\n<p>By induction on the number of descendants of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2780ef1cb525460253e4d12a2fa56ea2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>, we show that the cone of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2780ef1cb525460253e4d12a2fa56ea2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/> can be generated by\u00a0a term in the algebra of sourced graphs, with resources bounded as in the theorem (i.e. constants use at most <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1beb6ded8f4202fb1db67c10538e95f5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#43;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"35\" style=\"vertical-align: -2px;\"\/> vertices and source names from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2bc613dbaebd4f3b4f33ff434a168960_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#101;&#116;&#123;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#107;&#43;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"92\" style=\"vertical-align: -4px;\"\/>). More precisely, for any labelling of the sources in the cone by numbers in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2bc613dbaebd4f3b4f33ff434a168960_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#101;&#116;&#123;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#107;&#43;&#49;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"92\" style=\"vertical-align: -4px;\"\/>, we can create an appropriate term. Here is a picture of the induction step:<\/p>\n<p><a href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-11-1.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1385\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-11-1.svg\" alt=\"\" width=\"438\" height=\"774\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; In this page, we define tree decompositions and treewidth. We will define tree decompositions in two ways: less and more algebraically. The less algebraic way is more common in the literature, so we begin with that. The more algebraic way will be more convenient for our presentation of the Courcelle theorem, and is given [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1140,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-1188","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/1188"}],"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=1188"}],"version-history":[{"count":6,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/1188\/revisions"}],"predecessor-version":[{"id":1386,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/1188\/revisions\/1386"}],"up":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/1140"}],"wp:attachment":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/media?parent=1188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}