<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
  "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
  [<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
   <!ENTITY CLin "<mo class='builtin' lspace='thickmathspace' rspace='thickmathspace'>&epsiv;</mo>">]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Clausal Language (ver. 5.81.16, by P.J. Voda, J. Komara, J. Kluka)</title
>
<script type="text/javascript"><![CDATA[
base = document.baseURI;
i = base.indexOf("#"); //remove fragment
if (i >= 0) base = String(base.substring(0,i));
i = base.indexOf("?"); //remove query
if (i >= 0) base = String(base.substring(0,i));
http = "http://"
if (base.indexOf(http) == 0) {
    i = base.indexOf("/",String(http).length);
} else
    i = base.lastIndexOf("/");
if (i >= 0) base = base.substring(0,i); else base = base.toString();
BLANK_URI = base+"/blank.xml";
UPDATE_URI = base+"/update";
SUBMITWIN_FEATURES = "dependent,alwaysLowered,"+
                     "width=50,height=50,"+
                     "z-lock,resizable=no,status=yes";
ID_ATTR = "id";
RESPONSE_FOOTER_ID = "_update_footer_";
RESPONSE_FOOTER_XOFF_ID = "_update_footer_xoff_";
RESPONSE_FOOTER_YOFF_ID = "_update_footer_yoff_";
RESPONSE_FOOTER_FOCUS_SEL = "_update_footer_focus_sel_";
RESPONSE_FOOTER_FOCUS_NAME = "_update_footer_focus_name_";
RESPONSE_ID = "_update_container_";
loading = 0;
selector = null;
function submitForm(aForm,submitter)
{
    /* I know, I know, unless ++x is atomic, a race condition exists,
     * but this is better than nothing */
    if (++loading > 1) {
      loading--;
      alert("You are requesting an action while your previous request "+
            "is still being processed.\n"+
            "Please wait until it is completed.");
      return false;
    }
    var submitframe = document.getElementById("_updater_");
    window.blur(submitter);
    window.focus(document.defaultView);
    selector = aForm.elements["selector"];
    submitframe.onload =
      function() { doSubmit(aForm,submitter,submitframe); };
    submitframe.src = BLANK_URI;
    return false; //prohibit form submission in the original window
}
function doSubmit(aForm,submitter,submitframe)
{
    submitframe.onload = function () {};
    submitframe.style.display = "block";
    if (submitframe.src == BLANK_URI) {
        var submitdoc = submitframe.contentDocument;
        var impForm = submitdoc.importNode(aForm,true);
        var submitbody = submitdoc.getElementsByTagName("body")[0];
        impForm.onsubmit = null;
        submitbody.appendChild(impForm);
        submitframe.onload =
            function () { getUpdate(submitframe); };
        submitImportedForm(impForm,aForm,submitter);
    } else {
        alert("An error occured while trying to submit a form.\n\n"+
            "Check whether the CL server is still running and try again.");
        loading--;
        submitframe.style.display = "none";
    }
    return;
}
function submitImportedForm(impForm,origForm,submitter)
{
    impForm.action = UPDATE_URI;
    var elems = impForm.elements;
    var origElems = origForm.elements;
    var elemslen = elems.length;
    var submitElem = null;
    var elem = null;
    var origElem = null;
    var atMostOneSubmit = false;
    var someSubmit = null;
    for (var i = 0; i < elemslen; i++) {
        elem = elems[i];
        origElem = origElems[i];
        elem.name = origElem.name;
        elem.value = origElem.value;
        if (elem.type == "checkbox" || elem.type == "radio")
            elem.checked = origElem.checked;
        if (elem.type == "select") {
            var opts = elem.options;
            var origOpts = origElem.options;
            var optslen = opts.length;
            for (var j = 0; j < optslen; j++)
                opts[j].selected = origOpts[j].selected;
        }
        if (origElem.isSameNode(submitter))
            submitElem = elem;
        if (elem.type == "submit") {
            if (someSubmit == null)
              someSubmit = elem;
            else
              atMostOneSubmit = false;
        }
    }
    if (elems["xoff"] && elems["yoff"]) {
        elems["xoff"].value = window.pageXOffset+1;
        elems["yoff"].value = window.pageYOffset+1;
    }
    if (submitElem != null && submitElem.type == "submit")
        submitElem.click();
    else if (atMostOneSubmit && someSubmit != null)
        someSubmit.click();
    else
        impForm.submit();
}
function getUpdate(submitframe)
{
    submitframe.onload = function () {};
    var respdoc = submitframe.contentDocument;
    var footer = respdoc.getElementById(RESPONSE_FOOTER_ID);
    if (footer) {
        var resp = respdoc.getElementById(RESPONSE_ID);
        if (resp == null)
            return;
        var elems = resp.childNodes;
        var elemslen = elems.length;
        var elem, oldelem, parent, reArr, id, inselem;
        var focusSel, focusName;
        while (elems.length > 0) {
            elem = elems[0];
            resp.removeChild(elem);
            if (elem.hasAttributes() && elem.hasAttribute(ID_ATTR)) {
                id = elem.getAttribute(ID_ATTR);
                if (elem.hasAttribute("class") &&
                    elem.getAttribute("class") == "element_deleted") {
                    elem = document.getElementById(id);
                    elem.parentNode.removeChild(elem);
                } else if (elem.hasAttribute("class") &&
                    elem.getAttribute("class") == "element_inserted") {
                    splitRe = /^(.*)\.(.*)$/;
                    reArr = splitRe.exec(id);
                    parent = document.getElementById(reArr[1]);
                    oldelem = document.getElementById(reArr[2]);
                    inselem = nextElementSibling(elem.firstChild);
                    inselem = document.importNode(inselem,true);
                    insertAfter(parent,oldelem,inselem);
                } else {
                    oldelem = document.getElementById(id);
                    if (oldelem != null) {
                        elem = document.importNode(elem,true);
                        oldelem.parentNode.replaceChild(elem,oldelem);
                    }
                }
            } else {
                footer.appendChild(elem);
            }
        }
        elem = respdoc.getElementById(RESPONSE_FOOTER_XOFF_ID);
        var xoff = elem ? parseInt(elem.value,10) : 0;
        elem = respdoc.getElementById(RESPONSE_FOOTER_YOFF_ID);
        var yoff = elem ? parseInt(elem.value,10) : 0;
        if (xoff && yoff) {
            xoff--; yoff--;
        } else {
            xoff = window.pageXOffset;
            yoff = window.pageYOffset;
        };
        window.scrollTo(xoff,yoff);
        loading--;
        elem = respdoc.getElementById(RESPONSE_FOOTER_FOCUS_SEL);
        focusSel = elem ? elem.value : null;
        elem = respdoc.getElementById(RESPONSE_FOOTER_FOCUS_NAME);
        focusName = elem ? elem.value : null;
        submitframe.style.display = "none";
        var fobj,fform = document.getElementById(focusSel);
        if (!fform || fform.tagName != "form")
            fform = document.getElementById(focusSel+"__");
        if (fform && fform.tagName == "form" && fform.elements) {
            var fidx = parseInt(focusName,10);
            if (isNaN(fidx)) {
                fobj = fform.elements[focusName];
                if (fobj && !fobj.type && fobj.length) fobj = fobj.item(0);
            } else
                fobj = fform.elements[fidx];
            if (!fobj) fobj = findFocElem(fform);
        }
        if (!fobj) fobj = document.defaultView;
        try {fobj.focus();} catch(ex) {}; /* success */
    } else {
        alert("An error occured while trying to receive an update of "+
              "your view from the CL server.\n\n"+
              "Check whether the server is still running. If it is, "+
              "copy the most recently edited data to the clipboard, "+
              "and press Ctrl-R to update your view.");
        loading--;
        submitframe.style.display = "none";
    }
    return;
}
function insertAfter(parent,child,newchild)
{
    if (child == null) {
        child = nextElementSibling(parent.firstChild);
        parent.insertBefore(newchild,child);
    } else {
        child = nextElementSibling(child.nextSibling);
        parent.insertBefore(newchild,child);
    }
}
function nextElementSibling(node)
{
    while (node != null && node.nodeType != Node.ELEMENT_NODE)
        node = node.nextSibling;
    return node;
}
function firstNNull(elems,op)
{
    var i,res,elemslen = elems.length;
    for (i = 0; i < elemslen; i++)
        if ((res = op(elems[i])) != null)
            return res;
    return null;
}
function findFocElem(elem)
{
    if (elem.tagName == "form")
        return firstNNull(elem.elements,
                          function(e){return e.type == "hidden"?null:e;});
    return firstNNull(elem.childNodes,
                      function(e){return findFocElem(e);});
}
function taKey(ta,event)
{
    if (event.keyCode == 13 && (event.ctrlKey | event.shiftKey)) {
        var els = ta.form.elements;
        for (var i = 0, len = els.length; i < len; i++)
            if (els[i].type == "submit")
                return submitForm(ta.form,els[i]);
        return submitForm(ta.form,ta.form);
    }
}
function taKeyUp(ta,event)
{
    if (event.keyCode == event.DOM_VK_LEFT ||
        event.keyCode == event.DOM_VK_RIGHT ||
        event.keyCode == event.DOM_VK_UP ||
        event.keyCode == event.DOM_VK_DOWN)
        return;
    var c = countNls(ta.value)+1;
    if (c > 20) c = 20;
    if (ta.rows < c) ta.rows = c;
    if (ta.rows > c+1) ta.rows = c+1;
}
function countNls(str)
{
    var i,c,l; l = str.length;
    for(i = c = 0; i < l; ++i)
        if (str[i] == "\n") ++c;
    return c;
}
//]]></script>
<link rel="stylesheet" type="text/css" href="default.css" title="Default"/>
<link rel="alternate stylesheet" type="text/css" href="embers.css" title="Embers"
/>
</head>
<body><iframe id="_updater_" name="_edit_updater_" scrolling="no"/>
<div id="_main_editor_">
<form action="#" method="POST" class="quit_box"><input type="hidden" name="action"
 value="quit"/><input type="hidden" name="selector" value="id------"/><button
 type="submit" name="name" value="File" accesskey="f" class="quit" onclick="return submitForm(this.form,this);"
><span class="acskey">F</span>ile</button><button type="submit" name="name" value="Save"
 accesskey="s" class="quit" onclick="return submitForm(this.form,this);"><span
 class="acskey">S</span>ave</button><button type="submit" name="name" value="Setup"
 accesskey="u" class="quit" onclick="return submitForm(this.form,this);">Set<span
 class="acskey">u</span>p</button><button type="submit" name="name" value="Recompile"
 accesskey="r" class="quit" onclick="return submitForm(this.form,this);"><span
 class="acskey">R</span>ecompile</button><button type="submit" name="name" value="Reexec. Query"
 accesskey="q" class="quit" onclick="return submitForm(this.form,this);">Reexec. 
<span class="acskey">Q</span>uery</button><button type="submit" name="name" value="Save &amp; Exit"
 accesskey="x" class="quit" onclick="return submitForm(this.form,this);">Save &amp; E<span
 class="acskey">x</span>it</button><input type="hidden" name="xoff" value="0"
/><input type="hidden" name="yoff" value="0"/>
</form>
<div class="framed1">
<div class="framename">Clausal Language (ver. 5.81.16, by P.J. Voda, J. Komara, J. Kluka)
</div>
<div id="idD-----">
<div id="idE-----">
<div id="idF-----"/>
</div>
<div id="idG-----">
<div id="idH-----"/>
</div>
<div id="idI-----">
<div id="idJ-----"/>
</div>
</div>
<table id="idL-----" class="fill">
<tr>
<td class="fill"><span class="header">Module
<math xmlns="&mathml;">
<msub class="comp_id_hdr"><mi class="comp_id_hdr">Tests</mi><mn class="id_sub"
>2</mn>
</msub>
</math>
</span>
</td>
<td class="editbuttontd">
<form action="#idL-----" method="POST" id="idL-----__" onsubmit="return submitForm(this,this);"
><a name="idL-----"/><input type="hidden" name="selector" value="idL-----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
<div id="idM-----">
<div id="idN-----"><a name="idP-----"/>
<form action="#idP-----" method="POST" id="idP-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idP-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idQ-----" class="fill"><a name="idQ-----"/><span class="header">Included module
<math xmlns="&mathml;">
<mi class="comp_id_hdr">Standard</mi>
</math>
</span>
</div>
</div>
<div id="idR-----"><a name="idT-----"/>
<form action="#idT-----" method="POST" id="idT-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idT-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idU-----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>SKÚŠKOVÝ TEST Z ÚVODU DO DEKLARATÍVNEHO PROGRAMOVANIA </b>
</p>
<p>Pondelok 29. 5. 2006 o 15:00 
</p>
</td>
<td class="editbuttontd">
<form action="#idU-----" method="POST" id="idU-----__" onsubmit="return submitForm(this,this);"
><a name="idU-----"/><input type="hidden" name="selector" value="idU-----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idV-----"><a name="idX-----"/>
<form action="#idX-----" method="POST" id="idX-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idX-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idY-----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>Vaše meno:Jan Kolek </b>
</p>
</td>
<td class="editbuttontd">
<form action="#idY-----" method="POST" id="idY-----__" onsubmit="return submitForm(this,this);"
><a name="idY-----"/><input type="hidden" name="selector" value="idY-----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idZ-----"><a name="idb-----"/>
<form action="#idb-----" method="POST" id="idb-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idb-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idc-----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p>Test pozostáva zo štyroch úloh. Zadania pozri dole. 
</p>
<p><b>POKYNY </b>
</p>
<ul>
<li>
<p>Na vyriešenie úloh máte 90 minút. 
</p>
</li>
<li>
<p>Meno súboru obsahujúceho vaše riešenie: <i>tests2.cl </i>. 
</p>
</li>
<li>
<p>Na priebežné ukladanie vášho riešenia používajte tlačidlo <i>Save
 </i>( <i>Alt+S </i>). 
</p>
</li>
<li>
<p>Vaše riešenie odovzdajte podľa pokynov cvičiaceho. 
</p>
</li>
</ul>
<p><b>POČET BODOV: </b>
</p>
<ul>
<li>
<p>1. úloha: 10 bodov 
</p>
</li>
<li>
<p>2. úloha: 10 bodov 
</p>
</li>
<li>
<p>3. úloha: 10 bodov 
</p>
</li>
<li>
<p>4. úloha: 10 bodov 
</p>
</li>
</ul>
</td>
<td class="editbuttontd">
<form action="#idc-----" method="POST" id="idc-----__" onsubmit="return submitForm(this,this);"
><a name="idc-----"/><input type="hidden" name="selector" value="idc-----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idd-----"><a name="idf-----"/>
<form action="#idf-----" method="POST" id="idf-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idf-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idg-----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b><i>Preskočte nasledujúce komponenty až po nadpis <b>ÚLOHY </b>. </i
></b>
</p>
</td>
<td class="editbuttontd">
<form action="#idg-----" method="POST" id="idg-----__" onsubmit="return submitForm(this,this);"
><a name="idg-----"/><input type="hidden" name="selector" value="idg-----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idh-----"><a name="idj-----"/>
<form action="#idj-----" method="POST" id="idj-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idj-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idk-----" class="fill"><a name="idk-----"/><span class="header">Application display&nbsp;<em
>Cdots</em>&nbsp;/&nbsp;0: 
<math xmlns="&mathml;">
<mo>&ctdot;</mo>
</math>
</span>
</div>
</div>
<div id="idl-----"><a name="idn-----"/>
<form action="#idn-----" method="POST" id="idn-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idn-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="ido-----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Fill_in</mi>
</math>
</acronym>&nbsp;/&nbsp;0 displayed by&nbsp;<em>Cdots</em> as&nbsp;
<math xmlns="&mathml;">
<mo>&ctdot;</mo>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mo>&ctdot;</mo><mo>=</mo><mn class="builtin">20060529</mn><mo class="builtin"
>,</mo><mn class="builtin">0</mn>
</math>
</td>
<td class="editbuttontd">
<form action="#ido-----" method="POST" id="ido-----__" onsubmit="return submitForm(this,this);"
><a name="ido-----"/><input type="hidden" name="selector" value="ido-----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idp-----"><a name="idr-----"/>
<form action="#idr-----" method="POST" id="idr-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idr-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="ids-----" class="fill"><a name="ids-----"/><span class="header">Application display&nbsp;<em
>Ldots</em>&nbsp;/&nbsp;0: 
<math xmlns="&mathml;">
<mo>&hellip;</mo>
</math>
</span>
</div>
</div>
<div id="idt-----"><a name="idv-----"/>
<form action="#idv-----" method="POST" id="idv-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idv-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idw-----" class="fill"><a name="idw-----"/><span class="header">Application display&nbsp;<em
>Var_sub</em>&nbsp;/&nbsp;2: 
<math xmlns="&mathml;">
<msub>
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub>
</msub>
</math>
</span>
</div>
</div>
<div id="idx-----"><a name="idz-----"/>
<form action="#idz-----" method="POST" id="idz-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idz-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="id0-----" class="fill"><a name="id0-----"/><span class="header">Application display&nbsp;<em
>Perm</em>&nbsp;/&nbsp;2: 
<math xmlns="&mathml;">
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub><mo>&sim;</mo>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub>
</math>
</span>
</div>
</div>
<div id="id1-----"><a name="id3-----"/>
<form action="#id3-----" method="POST" id="id3-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id3-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id4-----" class="fill">
<tr>
<td class="fill"><span class="header">Predicate&nbsp;<acronym title="This predicate is a format"
 class="pred_format">
<math xmlns="&mathml;">
<mi class="inh_col_id">Ls</mi>
</math>
</acronym></span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Ls</mi>
<mrow><mo>(</mo><mn class="builtin">0</mn><mo>)</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Ls</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>x</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>t</mi>
</mstyle><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">Str</mi>
<mrow><mo>(</mo><mi>x</mi><mo>)</mo>
</mrow>
</mrow><mo>&and;</mo>
<mrow><mi class="ident">Ls</mi>
<mrow><mo>(</mo><mi>t</mi><mo>)</mo>
</mrow>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#id4-----" method="POST" id="id4-----__" onsubmit="return submitForm(this,this);"
><a name="id4-----"/><input type="hidden" name="selector" value="id4-----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id5-----"><a name="id7-----"/>
<form action="#id7-----" method="POST" id="id7-----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id7-----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="id8-----" class="fill"><a name="id8-----"/><span class="header">Application display&nbsp;<em
>E_d</em>&nbsp;/&nbsp;0: 
<math xmlns="&mathml;">
<mo>&bull;</mo>
</math>
</span>
</div>
</div>
<div id="id9-----"><a name="id-A----"/>
<form action="#id-A----" method="POST" id="id-A----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id-A----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idAA----" class="fill"><a name="idAA----"/><span class="header">Application display&nbsp;<em
>Nd_d</em>&nbsp;/&nbsp;3: 
<math xmlns="&mathml;">
<mfrac>
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub>
<mrow>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub><mo>&mid;</mo>
<msub class="ad_constr_arg"><mi>#</mi><mn>3</mn>
</msub>
</mrow>
</mfrac>
</math>
</span>
</div>
</div>
<div id="idBA----"><a name="idDA----"/>
<form action="#idDA----" method="POST" id="idDA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idDA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idEA----" class="fill"><a name="idEA----"/><span class="header">Application display&nbsp;<em
>Join_d</em>&nbsp;/&nbsp;2: 
<math xmlns="&mathml;">
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub><mo>&sqcup;</mo>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub>
</math>
</span>
</div>
</div>
<div id="idFA----"><a name="idHA----"/>
<form action="#idHA----" method="POST" id="idHA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idHA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idIA----" class="fill"><a name="idIA----"/><span class="header">Application display&nbsp;<em
>Delete_d</em>&nbsp;/&nbsp;2: 
<math xmlns="&mathml;">
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub><mo>&setmn;</mo>
<mrow><mo>{</mo>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub><mo>}</mo>
</mrow>
</math>
</span>
</div>
</div>
<div id="idJA----"><a name="idLA----"/>
<form action="#idLA----" method="POST" id="idLA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idLA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idMA----" class="fill"><a name="idMA----"/><span class="header">Application display&nbsp;<em
>Sub_d</em>&nbsp;/&nbsp;2: 
<math xmlns="&mathml;">
<msub>
<mrow><mo>(</mo>
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub><mo>)</mo>
</mrow>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub>
</msub>
</math>
</span>
</div>
</div>
<div id="idNA----"><a name="idPA----"/>
<form action="#idPA----" method="POST" id="idPA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idPA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idQA----" class="fill"><a name="idQA----"/><span class="header">Application display&nbsp;<em
>Vt_d</em>&nbsp;/&nbsp;1: 
<math xmlns="&mathml;">
<msubsup><mi mathvariant="bold">x</mi>
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub><mo>&bull;</mo>
</msubsup>
</math>
</span>
</div>
</div>
<div id="idRA----"><a name="idTA----"/>
<form action="#idTA----" method="POST" id="idTA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idTA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idUA----" class="fill"><a name="idUA----"/><span class="header">Application display&nbsp;<em
>Ct_d</em>&nbsp;/&nbsp;1: 
<math xmlns="&mathml;">
<msup>
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub><mo>&bull;</mo>
</msup>
</math>
</span>
</div>
</div>
<div id="idVA----"><a name="idXA----"/>
<form action="#idXA----" method="POST" id="idXA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idXA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idYA----" class="fill"><a name="idYA----"/><span class="header">Application display&nbsp;<em
>At_d</em>&nbsp;/&nbsp;2: 
<math xmlns="&mathml;">
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub>
<msup><mo>+</mo><mo>&bull;</mo>
</msup>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub>
</math>
</span>
</div>
</div>
<div id="idZA----"><a name="idbA----"/>
<form action="#idbA----" method="POST" id="idbA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idbA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idcA----" class="fill"><a name="idcA----"/><span class="header">Application display&nbsp;<em
>Mt_d</em>&nbsp;/&nbsp;2: 
<math xmlns="&mathml;">
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub>
<msup><mo>&times;</mo><mo>&bull;</mo>
</msup>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub>
</math>
</span>
</div>
</div>
<div id="iddA----"><a name="idfA----"/>
<form action="#idfA----" method="POST" id="idfA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idfA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idgA----" class="fill"><a name="idgA----"/><span class="header">Application display&nbsp;<em
>St_d</em>&nbsp;/&nbsp;1: 
<math xmlns="&mathml;">
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub>
<msup><mo>+</mo><mo>&bull;</mo>
</msup><mn>1</mn>
</math>
</span>
</div>
</div>
<div id="idhA----"><a name="idjA----"/>
<form action="#idjA----" method="POST" id="idjA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idjA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idkA----" class="fill"><a name="idkA----"/><span class="header">Application display&nbsp;<em
>Twt_d</em>&nbsp;/&nbsp;1: 
<math xmlns="&mathml;">
<mn>2</mn>
<msup><mo>&sdot;</mo><mo>&bull;</mo>
</msup>
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub>
</math>
</span>
</div>
</div>
<div id="idlA----"><a name="idnA----"/>
<form action="#idnA----" method="POST" id="idnA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idnA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idoA----" class="fill"><a name="idoA----"/><span class="header">Application display&nbsp;<em
>Bar</em>&nbsp;/&nbsp;2: 
<math xmlns="&mathml;">
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub><mo>&mid;</mo>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub>
</math>
</span>
</div>
</div>
<div id="idpA----"><a name="idrA----"/>
<form action="#idrA----" method="POST" id="idrA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idrA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idsA----" class="fill"><a name="idsA----"/><span class="header">Application display&nbsp;<em
>Den_d</em>&nbsp;/&nbsp;2: 
<math xmlns="&mathml;">
<msup>
<mrow><mo>&lobrk;</mo>
<msub class="ad_constr_arg"><mi>#</mi><mn>1</mn>
</msub><mo>&robrk;</mo>
</mrow>
<msub class="ad_constr_arg"><mi>#</mi><mn>2</mn>
</msub>
</msup>
</math>
</span>
</div>
</div>
<div id="idtA----"><a name="idvA----"/>
<form action="#idvA----" method="POST" id="idvA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idvA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idwA----" class="fill"><a name="idwA----"/><span class="header">Application display&nbsp;<em
>Vi_d</em>&nbsp;/&nbsp;1: 
<math xmlns="&mathml;">
<mi>LOAD</mi>
<mfenced><mi>&ctdot;</mi>
</mfenced>
</math>
</span>
</div>
</div>
<div id="idxA----"><a name="idzA----"/>
<form action="#idzA----" method="POST" id="idzA----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idzA----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="id0A----" class="fill"><a name="id0A----"/><span class="header">Application display&nbsp;<em
>Ci_d</em>&nbsp;/&nbsp;1: 
<math xmlns="&mathml;">
<mi>PUSH</mi>
<mfenced><mi>&ctdot;</mi>
</mfenced>
</math>
</span>
</div>
</div>
<div id="id1A----"><a name="id3A----"/>
<form action="#id3A----" method="POST" id="id3A----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id3A----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="id4A----" class="fill"><a name="id4A----"/><span class="header">Application display&nbsp;<em
>Ai_d</em>&nbsp;/&nbsp;0: 
<math xmlns="&mathml;">
<mi>ADD</mi>
<mfenced><mi>&ctdot;</mi>
</mfenced>
</math>
</span>
</div>
</div>
<div id="id5A----"><a name="id7A----"/>
<form action="#id7A----" method="POST" id="id7A----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id7A----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="id8A----" class="fill"><a name="id8A----"/><span class="header">Application display&nbsp;<em
>Mi_d</em>&nbsp;/&nbsp;0: 
<math xmlns="&mathml;">
<mi>MUL</mi>
<mfenced><mi>&ctdot;</mi>
</mfenced>
</math>
</span>
</div>
</div>
<div id="id9A----"><a name="id-B----"/>
<form action="#id-B----" method="POST" id="id-B----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id-B----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idAB----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Sub</mi>
</math>
</span>&nbsp;/&nbsp;2 displayed by&nbsp;<em>Sub_d</em> as&nbsp;
<math xmlns="&mathml;">
<msub>
<mrow><mo>(</mo>
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle><mo>)</mo>
</mrow>
<mstyle class="bvar">
<msub><mi>#</mi><mn>2</mn>
</msub>
</mstyle>
</msub>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<msub>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>v</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>w</mi>
</mstyle><mo>)</mo>
</mrow><mn class="builtin">0</mn>
</msub><mo>=</mo><mi>v</mi>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<msub>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>v</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>w</mi>
</mstyle><mo>)</mo>
</mrow>
<mrow>
<mstyle class="bvar"><mi>i</mi>
</mstyle><mo class="builtin">+</mo><mn class="builtin">1</mn>
</mrow>
</msub><mo>=</mo>
<msub>
<mrow><mo>(</mo><mi>w</mi><mo>)</mo>
</mrow><mi>i</mi>
</msub>
</math>
</td>
<td class="editbuttontd">
<form action="#idAB----" method="POST" id="idAB----__" onsubmit="return submitForm(this,this);"
><a name="idAB----"/><input type="hidden" name="selector" value="idAB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idBB----"><a name="idDB----"/>
<form action="#idDB----" method="POST" id="idDB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idDB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idEB----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><i><b>Ú L O H Y </b></i>
</p>
</td>
<td class="editbuttontd">
<form action="#idEB----" method="POST" id="idEB----__" onsubmit="return submitForm(this,this);"
><a name="idEB----"/><input type="hidden" name="selector" value="idEB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idFB----"><a name="idHB----"/>
<form action="#idHB----" method="POST" id="idHB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idHB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idIB----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b><i>Zoznamová kombinatorika </i></b>
</p>
</td>
<td class="editbuttontd">
<form action="#idIB----" method="POST" id="idIB----__" onsubmit="return submitForm(this,this);"
><a name="idIB----"/><input type="hidden" name="selector" value="idIB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idJB----"><a name="idLB----"/>
<form action="#idLB----" method="POST" id="idLB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idLB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idMB----" class="fill">
<tr>
<td class="fill"><span class="header">Theory
<math xmlns="&mathml;">
<mi class="comp_id_hdr">Mapping</mi>
</math>
</span>
</td>
<td class="editbuttontd">
<form action="#idMB----" method="POST" id="idMB----__" onsubmit="return submitForm(this,this);"
><a name="idMB----"/><input type="hidden" name="selector" value="idMB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idNB----"><a name="idPB----"/>
<form action="#idPB----" method="POST" id="idPB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idPB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idQB----" class="fill">
<tr>
<td class="fill">
<div style="margin-left: 1em"><span class="header">Function&nbsp;<acronym title="This is a free function/predicate"
 class="fun_pred_free">
<math xmlns="&mathml;">
<mi class="inh_col_id">F</mi>
</math>
</acronym>&nbsp;/&nbsp;2</span>
</div>
</td>
<td class="editbuttontd">
<form action="#idQB----" method="POST" id="idQB----__" onsubmit="return submitForm(this,this);"
><a name="idQB----"/><input type="hidden" name="selector" value="idQB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idRB----"><a name="idTB----"/>
<form action="#idTB----" method="POST" id="idTB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idTB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idUB----" class="fill">
<tr>
<td class="fill">
<div style="margin-left: 1em"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Map</mi>
</math>
</span>&nbsp;/&nbsp;2</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Map</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo>,</mo><mn class="builtin">0</mn><mo>)</mo>
</mrow><mo>=</mo><mn class="builtin">0</mn>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Map</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo>,</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>x</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">F</mi>
<mrow><mo>(</mo><mi>p</mi><mo>,</mo><mi>a</mi><mo>)</mo>
</mrow><mo class="builtin">,</mo><mi class="ident">Map</mi>
<mrow><mo>(</mo><mi>p</mi><mo>,</mo><mi>x</mi><mo>)</mo>
</mrow>
</math>
</div>
</td>
<td class="editbuttontd">
<form action="#idUB----" method="POST" id="idUB----__" onsubmit="return submitForm(this,this);"
><a name="idUB----"/><input type="hidden" name="selector" value="idUB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idVB----"><a name="idXB----"/>
<form action="#idXB----" method="POST" id="idXB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idXB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idYB----" class="fill"><a name="idYB----"/><span class="header">End of theory
<math xmlns="&mathml;">
<mi class="comp_id_hdr">Mapping</mi>
</math>
</span>
</div>
</div>
<div id="idZB----"><a name="idbB----"/>
<form action="#idbB----" method="POST" id="idbB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idbB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idcB----" class="fill">
<tr>
<td class="fill"><span class="header">Interpretation 
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
of theory
<math xmlns="&mathml;">
<mi class="ident">Mapping</mi>
</math>
</span>
</td>
<td class="editbuttontd">
<form action="#idcB----" method="POST" id="idcB----__" onsubmit="return submitForm(this,this);"
><a name="idcB----"/><input type="hidden" name="selector" value="idcB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="iddB----"><a name="idfB----"/>
<form action="#idfB----" method="POST" id="idfB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idfB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idgB----" class="fill">
<tr>
<td class="fill">
<div style="margin-left: 1em"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">F_pair</mi>
</math>
</span>&nbsp;/&nbsp;2</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">F_pair</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo>,</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi>p</mi><mo class="builtin">,</mo><mi>a</mi>
</math>
</div>
</td>
<td class="editbuttontd">
<form action="#idgB----" method="POST" id="idgB----__" onsubmit="return submitForm(this,this);"
><a name="idgB----"/><input type="hidden" name="selector" value="idgB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idhB----"><a name="idjB----"/>
<form action="#idjB----" method="POST" id="idjB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idjB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idkB----" class="fill">
<tr>
<td class="fill">
<div style="margin-left: 1em"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Map_pair</mi>
</math>
</span>&nbsp;/&nbsp;2</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Map_pair</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo>,</mo><mn class="builtin">0</mn><mo>)</mo>
</mrow><mo>=</mo><mn class="builtin">0</mn>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Map_pair</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo>,</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>x</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">F_pair</mi>
<mrow><mo>(</mo><mi>p</mi><mo>,</mo><mi>a</mi><mo>)</mo>
</mrow><mo class="builtin">,</mo><mi class="ident">Map_pair</mi>
<mrow><mo>(</mo><mi>p</mi><mo>,</mo><mi>x</mi><mo>)</mo>
</mrow>
</math>
</div>
</td>
<td class="editbuttontd">
<form action="#idkB----" method="POST" id="idkB----__" onsubmit="return submitForm(this,this);"
><a name="idkB----"/><input type="hidden" name="selector" value="idkB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idlB----"><a name="idnB----"/>
<form action="#idnB----" method="POST" id="idnB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idnB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<div id="idoB----" class="fill"><a name="idoB----"/><span class="header">End of interpretation of theory
<math xmlns="&mathml;">
<mi class="comp_id_hdr">Mapping</mi>
</math>
</span>
</div>
</div>
<div id="idpB----"><a name="idrB----"/>
<form action="#idrB----" method="POST" id="idrB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idrB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idsB----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>1. ÚLOHA </b>(10 bodov) 
</p>
</td>
<td class="editbuttontd">
<form action="#idsB----" method="POST" id="idsB----__" onsubmit="return submitForm(this,this);"
><a name="idsB----"/><input type="hidden" name="selector" value="idsB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idtB----"><a name="idvB----"/>
<form action="#idvB----" method="POST" id="idvB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idvB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idwB----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p>Cieľom v tejto úlohe je naprogramovať funkciu 
<math xmlns="&mathml;">
<mi class="ident">Subseqlist</mi>
</math>
v nasledujúcich dvoch krokoch: 
</p>
</td>
<td class="editbuttontd">
<form action="#idwB----" method="POST" id="idwB----__" onsubmit="return submitForm(this,this);"
><a name="idwB----"/><input type="hidden" name="selector" value="idwB----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idxB----"><a name="idzB----"/>
<form action="#idzB----" method="POST" id="idzB----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idzB----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id0B----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>a) </b>(5 bodov) 
</p>
<p class="indented">Pomocou 
<math xmlns="&mathml;">
<mi class="ident">Map_pair</mi>
</math>
(preddefinovanej nad hlavičkou 1. úlohy) zadefinujte funkciu 
<math xmlns="&mathml;">
<mi class="ident">Interleave</mi>
<mrow><mo>(</mo><mi>a</mi><mo>,</mo><mi>x</mi><mo>)</mo>
</mrow>
</math>
, ktorá vráti zoznam všetkých zoznamov, ktoré vzniknú vložením prvku
 
<math xmlns="&mathml;">
<mi>a</mi>
</math>
na niektoré miesto v zozname 
<math xmlns="&mathml;">
<mi>x</mi>
</math>
, teda 
</p>
<math xmlns="&mathml;" mode="display">
<mi>y</mi>&CLin;<mi class="ident">Interleave</mi>
<mrow><mo>(</mo><mi>a</mi><mo>,</mo><mi>x</mi><mo>)</mo>
</mrow><mo>&harr;</mo>
<mrow><mo>&exist;</mo>
<mstyle class="bvar">
<msub><mi>x</mi><mn>1</mn>
</msub>
</mstyle>
<mrow><mo>&exist;</mo>
<mstyle class="bvar">
<msub><mi>x</mi><mn>2</mn>
</msub>
</mstyle>
<mrow><mo>(</mo><mi>x</mi><mo>=</mo>
<mstyle class="bvar">
<msub><mi>x</mi><mn>1</mn>
</msub>
</mstyle><mo class="builtin">&oplus;</mo>
<mstyle class="bvar">
<msub><mi>x</mi><mn>2</mn>
</msub>
</mstyle><mo>&and;</mo><mi>y</mi><mo>=</mo>
<mstyle class="bvar">
<msub><mi>x</mi><mn>1</mn>
</msub>
</mstyle><mo class="builtin">&oplus;</mo>
<mrow><mo class="cp2">(</mo><mi>a</mi><mo class="builtin">,</mo>
<mstyle class="bvar">
<msub><mi>x</mi><mn>2</mn>
</msub>
</mstyle><mo class="cp2">)</mo>
</mrow><mo>)</mo>
</mrow>
</mrow>
</mrow>
</math>
<p>Napríklad výsledkom 
<math xmlns="&mathml;">
<mi class="ident">Interleave</mi>
<mrow><mo>(</mo><ms lquote="&quot;" rquote="&quot;" class="builtin">$</ms><mo
>,</mo><ms lquote="&apos;" rquote="&apos;" class="builtin">abcde</ms><mo>)</mo
>
</mrow><mo>=</mo><mi>x</mi>
</math>
: 
<math xmlns="&mathml;">
<mi class="ident">Ls</mi>
</math>
má byť 
<math xmlns="&mathml;">
<mi>t</mi><mo>=</mo><ms lquote="&apos;" rquote="&apos;" class="builtin">$abcde</ms
><mo class="builtin">,</mo><ms lquote="&apos;" rquote="&apos;" class="builtin"
>a$bcde</ms><mo class="builtin">,</mo><ms lquote="&apos;" rquote="&apos;" class="builtin"
>ab$cde</ms><mo class="builtin">,</mo><ms lquote="&apos;" rquote="&apos;" class="builtin"
>abc$de</ms><mo class="builtin">,</mo><ms lquote="&apos;" rquote="&apos;" class="builtin"
>abcd$e</ms><mo class="builtin">,</mo><ms lquote="&apos;" rquote="&apos;" class="builtin"
>abcde$</ms><mo class="builtin">,</mo><mn class="builtin">0</mn>
</math>
. 
</p>
</td>
<td class="editbuttontd">
<form action="#id0B----" method="POST" id="id0B----__" onsubmit="return submitForm(this,this);"
><a name="id0B----"/><input type="hidden" name="selector" value="id0B----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id1B----"><a name="id3B----"/>
<form action="#id3B----" method="POST" id="id3B----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id3B----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id4B----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Interleave</mi>
</math>
</span>&nbsp;/&nbsp;2</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Interleave</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo>,</mo><mn class="builtin">0</mn><mo>)</mo>
</mrow><mo>=</mo>
<mrow><mo>(</mo><mi>a</mi><mo class="builtin">,</mo><mn class="builtin">0</mn
><mo>)</mo>
</mrow><mo class="builtin">,</mo><mn class="builtin">0</mn>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Interleave</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo>,</mo>
<mstyle class="bvar"><mi>b</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>x</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo>
<mrow><mo>(</mo><mi>a</mi><mo class="builtin">,</mo><mi>b</mi><mo class="builtin"
>,</mo><mi>x</mi><mo>)</mo>
</mrow><mo class="builtin">,</mo><mi class="ident">Map_pair</mi>
<mrow><mo>(</mo><mi>b</mi><mo>,</mo><mi class="ident">Interleave</mi>
<mrow><mo class="cp2">(</mo><mi>a</mi><mo>,</mo><mi>x</mi><mo class="cp2">)</mo
>
</mrow><mo>)</mo>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#id4B----" method="POST" id="id4B----__" onsubmit="return submitForm(this,this);"
><a name="id4B----"/><input type="hidden" name="selector" value="id4B----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id5B----"><a name="id7B----"/>
<form action="#id7B----" method="POST" id="id7B----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id7B----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id8B----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>b) </b>(5 bodov) 
</p>
<p class="indented">Pomocou 
<math xmlns="&mathml;">
<mi class="ident">Interleave</mi>
</math>
zadefinujte funkciu 
<math xmlns="&mathml;">
<mi class="ident">Subseqlist</mi>
<mrow><mo>(</mo><mi>x</mi><mo>)</mo>
</mrow>
</math>
, ktorá vráti zoznam všetkých vybraných podpostupností zoznamu 
<math xmlns="&mathml;">
<mi>x</mi>
</math>
. 
</p>
<p class="indented">Napríklad výsledok 
<math xmlns="&mathml;">
<mi class="ident">Subseqlist</mi>
<mrow><mo>(</mo><ms lquote="&apos;" rquote="&apos;" class="builtin">Jago</ms
><mo>)</mo>
</mrow>
</math>
má obsahovať v ľubovoľnom poradí 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">Jago</ms>
</math>
; 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">ago</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">Jgo</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">Jao</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">Jag</ms>
</math>
; 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">go</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">Jo</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">Ja</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">Jg</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">ag</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">ao</ms>
</math>
; 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">J</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">a</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">g</ms>
</math>
, 
<math xmlns="&mathml;">
<ms lquote="&apos;" rquote="&apos;" class="builtin">o</ms>
</math>
; &apos;&apos;. 
</p>
</td>
<td class="editbuttontd">
<form action="#id8B----" method="POST" id="id8B----__" onsubmit="return submitForm(this,this);"
><a name="id8B----"/><input type="hidden" name="selector" value="id8B----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id9B----"><a name="id-C----"/>
<form action="#id-C----" method="POST" id="id-C----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id-C----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idAC----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Subseqlist</mi>
</math>
</span></span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Subseqlist</mi>
<mrow><mo>(</mo><mn class="builtin">0</mn><mo>)</mo>
</mrow><mo>=</mo><mn class="builtin">0</mn><mo class="builtin">,</mo><mn class="builtin"
>0</mn>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Subseqlist</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>x</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Map_pair</mi>
<mrow><mo>(</mo><mi>a</mi><mo>,</mo><mi>z</mi><mo>)</mo>
</mrow><mo class="builtin">&oplus;</mo><mi>z</mi><mo>&larr;</mo>
<mrow><mi class="ident">Subseqlist</mi>
<mrow><mo>(</mo><mi>x</mi><mo>)</mo>
</mrow><mo>=</mo>
<mstyle class="bvar"><mi>z</mi>
</mstyle>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idAC----" method="POST" id="idAC----__" onsubmit="return submitForm(this,this);"
><a name="idAC----"/><input type="hidden" name="selector" value="idAC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idBC----"><a name="idDC----"/>
<form action="#idDC----" method="POST" id="idDC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idDC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idEC----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b><i>Binárne stromy </i></b>
</p>
</td>
<td class="editbuttontd">
<form action="#idEC----" method="POST" id="idEC----__" onsubmit="return submitForm(this,this);"
><a name="idEC----"/><input type="hidden" name="selector" value="idEC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idFC----"><a name="idHC----"/>
<form action="#idHC----" method="POST" id="idHC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idHC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idIC----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">E</mi>
</math>
</acronym>&nbsp;/&nbsp;0 displayed by&nbsp;<em>E_d</em> as&nbsp;
<math xmlns="&mathml;">
<mo>&bull;</mo>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mo>&bull;</mo><mo>=</mo><mn class="builtin">0</mn><mo class="builtin">,</mo
><mn class="builtin">0</mn>
</math>
</td>
<td class="editbuttontd">
<form action="#idIC----" method="POST" id="idIC----__" onsubmit="return submitForm(this,this);"
><a name="idIC----"/><input type="hidden" name="selector" value="idIC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idJC----"><a name="idLC----"/>
<form action="#idLC----" method="POST" id="idLC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idLC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idMC----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Nd</mi>
</math>
</acronym>&nbsp;/&nbsp;3 displayed by&nbsp;<em>Nd_d</em> as&nbsp;
<math xmlns="&mathml;">
<mfrac>
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle>
<mrow>
<mstyle class="bvar">
<msub><mi>#</mi><mn>2</mn>
</msub>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar">
<msub><mi>#</mi><mn>3</mn>
</msub>
</mstyle>
</mrow>
</mfrac>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mfrac>
<mstyle class="bvar"><mi>a</mi>
</mstyle>
<mrow>
<mstyle class="bvar"><mi>l</mi>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar"><mi>r</mi>
</mstyle>
</mrow>
</mfrac><mo>=</mo><mn class="builtin">1</mn><mo class="builtin">,</mo><mi>a</mi
><mo class="builtin">,</mo><mi>l</mi><mo class="builtin">,</mo><mi>r</mi>
</math>
</td>
<td class="editbuttontd">
<form action="#idMC----" method="POST" id="idMC----__" onsubmit="return submitForm(this,this);"
><a name="idMC----"/><input type="hidden" name="selector" value="idMC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idNC----"><a name="idPC----"/>
<form action="#idPC----" method="POST" id="idPC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idPC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idQC----" class="fill">
<tr>
<td class="fill"><span class="header">Predicate&nbsp;<acronym title="This predicate is a format"
 class="pred_format">
<math xmlns="&mathml;">
<mi class="inh_col_id">Bt</mi>
</math>
</acronym></span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Bt</mi>
<mrow><mo>(</mo><mo>&bull;</mo><mo>)</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Bt</mi>
<mrow><mo>(</mo>
<mfrac>
<mstyle class="bvar"><mi>a</mi>
</mstyle>
<mrow>
<mstyle class="bvar"><mi>l</mi>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar"><mi>r</mi>
</mstyle>
</mrow>
</mfrac><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">N</mi>
<mrow><mo>(</mo><mi>a</mi><mo>)</mo>
</mrow>
</mrow><mo>&and;</mo>
<mrow><mi class="ident">Bt</mi>
<mrow><mo>(</mo><mi>l</mi><mo>)</mo>
</mrow>
</mrow><mo>&and;</mo>
<mrow><mi class="ident">Bt</mi>
<mrow><mo>(</mo><mi>r</mi><mo>)</mo>
</mrow>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idQC----" method="POST" id="idQC----__" onsubmit="return submitForm(this,this);"
><a name="idQC----"/><input type="hidden" name="selector" value="idQC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idRC----"><a name="idTC----"/>
<form action="#idTC----" method="POST" id="idTC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idTC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idUC----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<msub class="inh_col_id"><mi class="inh_col_id">Tree</mi><mn class="id_sub">2</mn
>
</msub>
</math>
</span>&nbsp;/&nbsp;0</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<msub class="ident"><mi class="ident">Tree</mi><mn class="id_sub">2</mn>
</msub><mo>=</mo>
<mfrac><mn class="builtin">1</mn>
<mrow>
<mfrac><mn class="builtin">2</mn>
<mrow>
<mfrac><mn class="builtin">3</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac><mo>&mid;</mo>
<mfrac><mn class="builtin">4</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac>
</mrow>
</mfrac><mo>&mid;</mo>
<mfrac><mn class="builtin">5</mn>
<mrow>
<mfrac><mn class="builtin">6</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac><mo>&mid;</mo>
<mfrac><mn class="builtin">7</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac>
</mrow>
</mfrac>
</mrow>
</mfrac>
</math>
</td>
<td class="editbuttontd">
<form action="#idUC----" method="POST" id="idUC----__" onsubmit="return submitForm(this,this);"
><a name="idUC----"/><input type="hidden" name="selector" value="idUC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idVC----"><a name="idXC----"/>
<form action="#idXC----" method="POST" id="idXC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idXC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idYC----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>2. ÚLOHA </b>(10 bodov) 
</p>
</td>
<td class="editbuttontd">
<form action="#idYC----" method="POST" id="idYC----__" onsubmit="return submitForm(this,this);"
><a name="idYC----"/><input type="hidden" name="selector" value="idYC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idZC----"><a name="idbC----"/>
<form action="#idbC----" method="POST" id="idbC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idbC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idcC----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>a) </b>(4 body) 
</p>
<p class="indented">Zadefinujte funkciu 
<math xmlns="&mathml;">
<mi class="ident">Rinorder</mi>
<mrow><mo>(</mo><mi>t</mi><mo>)</mo>
</mrow>
</math>
, ktorá vráti zoznam prvkov uložených v strome 
<math xmlns="&mathml;">
<mi>t</mi>
</math>
v <i>obrátenom poradí inorder </i>, teda tak, že zoznam vrátený 
<math xmlns="&mathml;">
<mi class="ident">Rinorder</mi>
<mrow><mo>(</mo>
<mfrac><mi>x</mi>
<mrow><mi>l</mi><mo>&mid;</mo><mi>r</mi>
</mrow>
</mfrac><mo>)</mo>
</mrow>
</math>
</p>
<ul>
<li>
<p>začína prvkami podstromu 
<math xmlns="&mathml;">
<mi>r</mi>
</math>
(v obrátenom poradí inorder), 
</p>
</li>
<li>
<p>pokračuje prvkom 
<math xmlns="&mathml;">
<mi>x</mi>
</math>
, 
</p>
</li>
<li>
<p>končí prvkami podstromu 
<math xmlns="&mathml;">
<mi>l</mi>
</math>
(v obrátenom poradí inorder). 
</p>
</li>
</ul>
<p>Napr. 
<math xmlns="&mathml;">
<mi class="ident">Rinorder</mi>
<mrow><mo>(</mo>
<mfrac><mn class="builtin">1</mn>
<mrow>
<mfrac><mn class="builtin">2</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac><mo>&mid;</mo>
<mfrac><mn class="builtin">3</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac>
</mrow>
</mfrac><mo>)</mo>
</mrow><mo>=</mo><mn class="builtin">3</mn><mo class="builtin">,</mo><mn class="builtin"
>1</mn><mo class="builtin">,</mo><mn class="builtin">2</mn><mo class="builtin"
>,</mo><mn class="builtin">0</mn>
</math>
a 
<math xmlns="&mathml;">
<mi class="ident">Rinorder</mi>
<mrow><mo>(</mo>
<msub class="ident"><mi class="ident">Tree</mi><mn class="id_sub">2</mn>
</msub><mo>)</mo>
</mrow><mo>=</mo><mn class="builtin">7</mn><mo class="builtin">,</mo><mn class="builtin"
>5</mn><mo class="builtin">,</mo><mn class="builtin">6</mn><mo class="builtin"
>,</mo><mn class="builtin">1</mn><mo class="builtin">,</mo><mn class="builtin"
>4</mn><mo class="builtin">,</mo><mn class="builtin">2</mn><mo class="builtin"
>,</mo><mn class="builtin">3</mn><mo class="builtin">,</mo><mn class="builtin"
>0</mn>
</math>
( 
<math xmlns="&mathml;">
<msub class="ident"><mi class="ident">Tree</mi><mn class="id_sub">2</mn>
</msub>
</math>
je definovaný pred hlavičkou 2. úlohy). 
</p>
</td>
<td class="editbuttontd">
<form action="#idcC----" method="POST" id="idcC----__" onsubmit="return submitForm(this,this);"
><a name="idcC----"/><input type="hidden" name="selector" value="idcC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="iddC----"><a name="idfC----"/>
<form action="#idfC----" method="POST" id="idfC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idfC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idgC----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Rinorder</mi>
</math>
</span></span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Rinorder</mi>
<mrow><mo>(</mo><mo>&bull;</mo><mo>)</mo>
</mrow><mo>=</mo><mn class="builtin">0</mn>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Rinorder</mi>
<mrow><mo>(</mo>
<mfrac>
<mstyle class="bvar"><mi>x</mi>
</mstyle>
<mrow>
<mstyle class="bvar"><mi>l</mi>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar"><mi>r</mi>
</mstyle>
</mrow>
</mfrac><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Rinorder</mi>
<mrow><mo>(</mo><mi>r</mi><mo>)</mo>
</mrow><mo class="builtin">&oplus;</mo>
<mrow><mo>(</mo><mi>x</mi><mo class="builtin">,</mo><mi class="ident">Rinorder</mi
>
<mrow><mo class="cp2">(</mo><mi>l</mi><mo class="cp2">)</mo>
</mrow><mo>)</mo>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idgC----" method="POST" id="idgC----__" onsubmit="return submitForm(this,this);"
><a name="idgC----"/><input type="hidden" name="selector" value="idgC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idhC----"><a name="idjC----"/>
<form action="#idjC----" method="POST" id="idjC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idjC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idkC----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>b) </b>(6 bodov) 
</p>
<p class="indented">Zadefinujte funkciu 
<math xmlns="&mathml;">
<mi class="ident">Rinordera</mi>
<mrow><mo>(</mo><mi>t</mi><mo>,</mo><mi>a</mi><mo>)</mo>
</mrow>
</math>
, pre ktorú platí 
</p>
<math xmlns="&mathml;" mode="display">
<mi class="ident">Bt</mi>
<mrow><mo>(</mo><mi>t</mi><mo>)</mo>
</mrow><mo>&rarr;</mo><mi class="ident">Rinordera</mi>
<mrow><mo>(</mo><mi>t</mi><mo>,</mo><mi>a</mi><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Rinorder</mi>
<mrow><mo>(</mo><mi>t</mi><mo>)</mo>
</mrow><mo class="builtin">&oplus;</mo><mi>a</mi>
</math>
<p>V definícii nesmiete použiť zreťazenie ani žiadne pomocné funkcie vrátane
 
<math xmlns="&mathml;">
<mi class="ident">Rinorder</mi>
</math>
. 
</p>
<p class="indented">Príklad: 
<math xmlns="&mathml;">
<mi class="ident">Rinordera</mi>
<mrow><mo>(</mo>
<msub class="ident"><mi class="ident">Tree</mi><mn class="id_sub">2</mn>
</msub><mo>,</mo><mn class="builtin">88</mn><mo class="builtin">,</mo><mn class="builtin"
>99</mn><mo class="builtin">,</mo><mn class="builtin">0</mn><mo>)</mo>
</mrow><mo>=</mo><mn class="builtin">7</mn><mo class="builtin">,</mo><mn class="builtin"
>5</mn><mo class="builtin">,</mo><mn class="builtin">6</mn><mo class="builtin"
>,</mo><mn class="builtin">1</mn><mo class="builtin">,</mo><mn class="builtin"
>4</mn><mo class="builtin">,</mo><mn class="builtin">2</mn><mo class="builtin"
>,</mo><mn class="builtin">3</mn><mo class="builtin">,</mo><mn class="builtin"
>88</mn><mo class="builtin">,</mo><mn class="builtin">99</mn><mo class="builtin"
>,</mo><mn class="builtin">0</mn>
</math>
. 
</p>
</td>
<td class="editbuttontd">
<form action="#idkC----" method="POST" id="idkC----__" onsubmit="return submitForm(this,this);"
><a name="idkC----"/><input type="hidden" name="selector" value="idkC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idlC----"><a name="idnC----"/>
<form action="#idnC----" method="POST" id="idnC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idnC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idoC----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Rinordera</mi>
</math>
</span>&nbsp;/&nbsp;2</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Rinordera</mi>
<mrow><mo>(</mo><mo>&bull;</mo><mo>,</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi>a</mi>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Rinordera</mi>
<mrow><mo>(</mo>
<mfrac>
<mstyle class="bvar"><mi>x</mi>
</mstyle>
<mrow>
<mstyle class="bvar"><mi>l</mi>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar"><mi>r</mi>
</mstyle>
</mrow>
</mfrac><mo>,</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Rinordera</mi>
<mrow><mo>(</mo><mi>r</mi><mo>,</mo><mi>x</mi><mo class="builtin">,</mo><mi class="ident"
>Rinordera</mi>
<mrow><mo class="cp2">(</mo><mi>l</mi><mo>,</mo><mi>a</mi><mo class="cp2">)</mo
>
</mrow><mo>)</mo>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idoC----" method="POST" id="idoC----__" onsubmit="return submitForm(this,this);"
><a name="idoC----"/><input type="hidden" name="selector" value="idoC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idpC----"><a name="idrC----"/>
<form action="#idrC----" method="POST" id="idrC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idrC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idsC----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b><i>Binárne vyhľadávacie stromy </i></b>
</p>
</td>
<td class="editbuttontd">
<form action="#idsC----" method="POST" id="idsC----__" onsubmit="return submitForm(this,this);"
><a name="idsC----"/><input type="hidden" name="selector" value="idsC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idtC----"><a name="idvC----"/>
<form action="#idvC----" method="POST" id="idvC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idvC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idwC----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p>Binárny strom 
<math xmlns="&mathml;">
<mi>t</mi>
</math>
nazveme <i>vyhľadávacím </i>(píšeme 
<math xmlns="&mathml;">
<mi class="ident">Bst</mi>
<mrow><mo>(</mo><mi>t</mi><mo>)</mo>
</mrow>
</math>
), ak je prázdny, alebo ak pre nejaký prvok 
<math xmlns="&mathml;">
<mi>x</mi>
</math>
a podstromy 
<math xmlns="&mathml;">
<mi>l</mi>
</math>
a 
<math xmlns="&mathml;">
<mi>r</mi>
</math>
platí 
<math xmlns="&mathml;">
<mi>t</mi><mo>=</mo>
<mfrac><mi>x</mi>
<mrow><mi>l</mi><mo>&mid;</mo><mi>r</mi>
</mrow>
</mfrac>
</math>
a 
</p>
<ul>
<li>
<p>všetky prvky v 
<math xmlns="&mathml;">
<mi>l</mi>
</math>
sú ostro menšie ako 
<math xmlns="&mathml;">
<mi>x</mi>
</math>
, 
</p>
</li>
<li>
<p>všetky prvky v 
<math xmlns="&mathml;">
<mi>r</mi>
</math>
sú ostro väčšie ako 
<math xmlns="&mathml;">
<mi>x</mi>
</math>
, 
</p>
</li>
<li>
<p>
<math xmlns="&mathml;">
<mi>l</mi>
</math>
a 
<math xmlns="&mathml;">
<mi>r</mi>
</math>
sú binárne vyhľadávacie stromy. 
</p>
</li>
</ul>
<p>Príkladom binárneho vyhľadávacieho stromu je 
<math xmlns="&mathml;">
<msub class="ident"><mi class="ident">Tree</mi><mn class="id_sub">3</mn>
</msub>
</math>
. 
</p>
</td>
<td class="editbuttontd">
<form action="#idwC----" method="POST" id="idwC----__" onsubmit="return submitForm(this,this);"
><a name="idwC----"/><input type="hidden" name="selector" value="idwC----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idxC----"><a name="idzC----"/>
<form action="#idzC----" method="POST" id="idzC----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idzC----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id0C----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<msub class="inh_col_id"><mi class="inh_col_id">Tree</mi><mn class="id_sub">3</mn
>
</msub>
</math>
</span>&nbsp;/&nbsp;0</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<msub class="ident"><mi class="ident">Tree</mi><mn class="id_sub">3</mn>
</msub><mo>=</mo>
<mfrac><mn class="builtin">100</mn>
<mrow>
<mfrac><mn class="builtin">50</mn>
<mrow>
<mfrac><mn class="builtin">20</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo>
<mfrac><mn class="builtin">30</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac>
</mrow>
</mfrac><mo>&mid;</mo>
<mfrac><mn class="builtin">80</mn>
<mrow>
<mfrac><mn class="builtin">60</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac>
</mrow>
</mfrac><mo>&mid;</mo>
<mfrac><mn class="builtin">150</mn>
<mrow>
<mfrac><mn class="builtin">120</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac><mo>&mid;</mo>
<mfrac><mn class="builtin">190</mn>
<mrow>
<mfrac><mn class="builtin">170</mn>
<mrow><mo>&bull;</mo><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac><mo>&mid;</mo><mo>&bull;</mo>
</mrow>
</mfrac>
</mrow>
</mfrac>
</mrow>
</mfrac>
</math>
</td>
<td class="editbuttontd">
<form action="#id0C----" method="POST" id="id0C----__" onsubmit="return submitForm(this,this);"
><a name="id0C----"/><input type="hidden" name="selector" value="id0C----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id1C----"><a name="id3C----"/>
<form action="#id3C----" method="POST" id="id3C----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id3C----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id4C----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>3. ÚLOHA </b>(10 bodov) 
</p>
</td>
<td class="editbuttontd">
<form action="#id4C----" method="POST" id="id4C----__" onsubmit="return submitForm(this,this);"
><a name="id4C----"/><input type="hidden" name="selector" value="id4C----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id5C----"><a name="id7C----"/>
<form action="#id7C----" method="POST" id="id7C----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id7C----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id8C----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>a) </b>(5 body) 
</p>
<p class="indented">Zadefinujte funkciu 
<math xmlns="&mathml;">
<mi class="ident">Extract_min</mi>
<mrow><mo>(</mo><mi>t</mi><mo>)</mo>
</mrow>
</math>
, ktorá pre binárny vyhľadávací strom 
<math xmlns="&mathml;">
<mi>t</mi>
</math>
vráti <i>dvojicu </i>
<math xmlns="&mathml;">
<mi>m</mi><mo class="builtin">,</mo><mi>s</mi>
</math>
, v ktorej 
<math xmlns="&mathml;">
<mi>m</mi>
</math>
je <i>minimálny </i>prvok stromu 
<math xmlns="&mathml;">
<mi>t</mi>
</math>
a 
<math xmlns="&mathml;">
<mi>s</mi>
</math>
je binárny vyhľadávací strom, ktorý vznikne z 
<math xmlns="&mathml;">
<mi>t</mi>
</math>
odstránením prvku 
<math xmlns="&mathml;">
<mi>m</mi>
</math>
. 
</p>
<p class="indented">Uvedomte si, kde sa v binárnom vyhľadávacom strome nachádza
 minimálny prvok. Nepoužite žiadne pomocné funkcie. 
</p>
</td>
<td class="editbuttontd">
<form action="#id8C----" method="POST" id="id8C----__" onsubmit="return submitForm(this,this);"
><a name="id8C----"/><input type="hidden" name="selector" value="id8C----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id9C----"><a name="id-D----"/>
<form action="#id-D----" method="POST" id="id-D----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id-D----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idAD----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Extract_min</mi>
</math>
</span></span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Extract_min</mi>
<mrow><mo>(</mo>
<mfrac>
<mstyle class="bvar"><mi>x</mi>
</mstyle>
<mrow>
<mstyle class="bvar"><mi>l</mi>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar"><mi>r</mi>
</mstyle>
</mrow>
</mfrac><mo>)</mo>
</mrow><mo>=</mo><mi>x</mi><mo class="builtin">,</mo><mi>r</mi><mo>&larr;</mo
>
<mrow><mi>l</mi><mo>=</mo><mo>&bull;</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Extract_min</mi>
<mrow><mo>(</mo>
<mfrac>
<mstyle class="bvar"><mi>x</mi>
</mstyle>
<mrow>
<mstyle class="bvar"><mi>l</mi>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar"><mi>r</mi>
</mstyle>
</mrow>
</mfrac><mo>)</mo>
</mrow><mo>=</mo><mi>m</mi><mo class="builtin">,</mo>
<mfrac><mi>x</mi>
<mrow>
<msub><mi>l</mi><mn>1</mn>
</msub><mo>&mid;</mo><mi>r</mi>
</mrow>
</mfrac><mo>&larr;</mo>
<mrow><mi>l</mi><mo>&ne;</mo><mo>&bull;</mo>
</mrow><mo>&and;</mo>
<mrow><mi class="ident">Extract_min</mi>
<mrow><mo>(</mo><mi>l</mi><mo>)</mo>
</mrow><mo>=</mo>
<mstyle class="bvar"><mi>m</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar">
<msub><mi>l</mi><mn>1</mn>
</msub>
</mstyle>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idAD----" method="POST" id="idAD----__" onsubmit="return submitForm(this,this);"
><a name="idAD----"/><input type="hidden" name="selector" value="idAD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idBD----"><a name="idDD----"/>
<form action="#idDD----" method="POST" id="idDD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idDD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idED----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p>Funkcia 
<math xmlns="&mathml;">
<mi class="ident">Join</mi>
<mrow><mo>(</mo><mi>s</mi><mo>,</mo><mi>t</mi><mo>)</mo>
</mrow>
</math>
( 
<math xmlns="&mathml;">
<mi>s</mi><mo>&sqcup;</mo><mi>t</mi>
</math>
) spojí binárne vyhľadávacie stromy 
<math xmlns="&mathml;">
<mi>s</mi>
</math>
a 
<math xmlns="&mathml;">
<mi>t</mi>
</math>
do jediného vyhľadávacieho stromu. Predpokladá pritom, že všetky prvky
 stromu 
<math xmlns="&mathml;">
<mi>s</mi>
</math>
sú menšie ako všetky prvky stromu 
<math xmlns="&mathml;">
<mi>t</mi>
</math>
. 
</p>
<p class="indented">Túto funkciu nemeňte. Ak je označená <b>### </b>, alebo
 sú v nej chyby, kliknite <i>Recompile </i>vpravo hore. 
</p>
</td>
<td class="editbuttontd">
<form action="#idED----" method="POST" id="idED----__" onsubmit="return submitForm(this,this);"
><a name="idED----"/><input type="hidden" name="selector" value="idED----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idFD----"><a name="idHD----"/>
<form action="#idHD----" method="POST" id="idHD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idHD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idID----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Join</mi>
</math>
</span>&nbsp;/&nbsp;2 displayed by&nbsp;<em>Join_d</em> as&nbsp;
<math xmlns="&mathml;">
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle><mo>&sqcup;</mo>
<mstyle class="bvar">
<msub><mi>#</mi><mn>2</mn>
</msub>
</mstyle>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mstyle class="bvar"><mi>s</mi>
</mstyle><mo>&sqcup;</mo>
<mstyle class="bvar"><mi>t</mi>
</mstyle><mo>=</mo><mi>t</mi><mo>&larr;</mo>
<mrow><mi>s</mi><mo>=</mo><mo>&bull;</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mstyle class="bvar"><mi>s</mi>
</mstyle><mo>&sqcup;</mo>
<mstyle class="bvar"><mi>t</mi>
</mstyle><mo>=</mo><mi>s</mi><mo>&larr;</mo>
<mrow><mi>s</mi><mo>&ne;</mo><mo>&bull;</mo>
</mrow><mo>&and;</mo>
<mrow><mi>t</mi><mo>=</mo><mo>&bull;</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mstyle class="bvar"><mi>s</mi>
</mstyle><mo>&sqcup;</mo>
<mstyle class="bvar"><mi>t</mi>
</mstyle><mo>=</mo>
<mfrac><mi>m</mi>
<mrow><mi>s</mi><mo>&mid;</mo>
<msub><mi>t</mi><mn>1</mn>
</msub>
</mrow>
</mfrac><mo>&larr;</mo>
<mrow><mi>s</mi><mo>&ne;</mo><mo>&bull;</mo>
</mrow><mo>&and;</mo>
<mrow><mi>t</mi><mo>&ne;</mo><mo>&bull;</mo>
</mrow><mo>&and;</mo>
<mrow><mi class="ident">Extract_min</mi>
<mrow><mo>(</mo><mi>t</mi><mo>)</mo>
</mrow><mo>=</mo>
<mstyle class="bvar"><mi>m</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idID----" method="POST" id="idID----__" onsubmit="return submitForm(this,this);"
><a name="idID----"/><input type="hidden" name="selector" value="idID----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idJD----"><a name="idLD----"/>
<form action="#idLD----" method="POST" id="idLD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idLD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idMD----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>b) </b>(5 bodov) 
</p>
<p class="indented">Zadefinujte funkciu 
<math xmlns="&mathml;">
<mi class="ident">Delete</mi>
<mrow><mo>(</mo><mi>t</mi><mo>,</mo><mi>a</mi><mo>)</mo>
</mrow>
</math>
( 
<math xmlns="&mathml;">
<mi>t</mi><mo>&setmn;</mo>
<mrow><mo>{</mo><mi>a</mi><mo>}</mo>
</mrow>
</math>
), ktorá z binárneho vyhľadávacieho stromu 
<math xmlns="&mathml;">
<mi>t</mi>
</math>
odstráni prvok 
<math xmlns="&mathml;">
<mi>a</mi>
</math>
. Výsledný strom je opäť vyhľadávací. 
</p>
<p class="indented">Nepoužite žiadne pomocné funkcie okrem 
<math xmlns="&mathml;">
<mi class="ident">Join</mi>
</math>
. 
</p>
</td>
<td class="editbuttontd">
<form action="#idMD----" method="POST" id="idMD----__" onsubmit="return submitForm(this,this);"
><a name="idMD----"/><input type="hidden" name="selector" value="idMD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idND----"><a name="idPD----"/>
<form action="#idPD----" method="POST" id="idPD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idPD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idQD----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Delete</mi>
</math>
</span>&nbsp;/&nbsp;2 displayed by&nbsp;<em>Delete_d</em> as&nbsp;
<math xmlns="&mathml;">
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle><mo>&setmn;</mo>
<mrow><mo>{</mo>
<mstyle class="bvar">
<msub><mi>#</mi><mn>2</mn>
</msub>
</mstyle><mo>}</mo>
</mrow>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mrow><mo>&bull;</mo><mo>&setmn;</mo>
<mrow><mo>{</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo>}</mo>
</mrow>
</mrow><mo>=</mo><mo>&bull;</mo>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mfrac>
<mstyle class="bvar"><mi>x</mi>
</mstyle>
<mrow>
<mstyle class="bvar"><mi>l</mi>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar"><mi>r</mi>
</mstyle>
</mrow>
</mfrac><mo>&setmn;</mo>
<mrow><mo>{</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo>}</mo>
</mrow><mo>=</mo><mi>l</mi><mo>&sqcup;</mo><mi>r</mi><mo>&larr;</mo>
<mrow><mi>x</mi><mo>=</mo><mi>a</mi>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mfrac>
<mstyle class="bvar"><mi>x</mi>
</mstyle>
<mrow>
<mstyle class="bvar"><mi>l</mi>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar"><mi>r</mi>
</mstyle>
</mrow>
</mfrac><mo>&setmn;</mo>
<mrow><mo>{</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo>}</mo>
</mrow><mo>=</mo>
<mfrac><mi>x</mi>
<mrow><mi>l</mi><mo>&setmn;</mo>
<mrow><mo>{</mo><mi>a</mi><mo>}</mo>
</mrow><mo>&mid;</mo><mi>r</mi>
</mrow>
</mfrac><mo>&larr;</mo>
<mrow><mi>x</mi><mo class="builtin">&gt;</mo><mi>a</mi>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mfrac>
<mstyle class="bvar"><mi>x</mi>
</mstyle>
<mrow>
<mstyle class="bvar"><mi>l</mi>
</mstyle><mo>&mid;</mo>
<mstyle class="bvar"><mi>r</mi>
</mstyle>
</mrow>
</mfrac><mo>&setmn;</mo>
<mrow><mo>{</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo>}</mo>
</mrow><mo>=</mo>
<mfrac><mi>x</mi>
<mrow><mi>l</mi><mo>&mid;</mo><mi>r</mi><mo>&setmn;</mo>
<mrow><mo>{</mo><mi>a</mi><mo>}</mo>
</mrow>
</mrow>
</mfrac><mo>&larr;</mo>
<mrow><mi>x</mi><mo class="builtin">&lt;</mo><mi>a</mi>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idQD----" method="POST" id="idQD----__" onsubmit="return submitForm(this,this);"
><a name="idQD----"/><input type="hidden" name="selector" value="idQD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idRD----"><a name="idTD----"/>
<form action="#idTD----" method="POST" id="idTD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idTD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idUD----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b><i>Aritmetické výrazy s premennými a kompilácia pre postfixový stroj
 </i></b>
</p>
</td>
<td class="editbuttontd">
<form action="#idUD----" method="POST" id="idUD----__" onsubmit="return submitForm(this,this);"
><a name="idUD----"/><input type="hidden" name="selector" value="idUD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idVD----"><a name="idXD----"/>
<form action="#idXD----" method="POST" id="idXD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idXD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idYD----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p>Na prednáške a cvičeniach sme pracovali s aritmetickými výrazmi s premennými,
 ktoré sa skladali z premenných, číselných konštánt, a operácií sčítanie
 a násobenie. 
</p>
</td>
<td class="editbuttontd">
<form action="#idYD----" method="POST" id="idYD----__" onsubmit="return submitForm(this,this);"
><a name="idYD----"/><input type="hidden" name="selector" value="idYD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idZD----"><a name="idbD----"/>
<form action="#idbD----" method="POST" id="idbD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idbD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idcD----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Vt</mi>
</math>
</acronym> displayed by&nbsp;<em>Vt_d</em> as&nbsp;
<math xmlns="&mathml;">
<msubsup><mi mathvariant="bold">x</mi>
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle><mo>&bull;</mo>
</msubsup>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<msubsup><mi mathvariant="bold">x</mi>
<mstyle class="bvar"><mi>i</mi>
</mstyle><mo>&bull;</mo>
</msubsup><mo>=</mo><mn class="builtin">0</mn><mo class="builtin">,</mo><mi>i</mi
>
</math>
</td>
<td class="editbuttontd">
<form action="#idcD----" method="POST" id="idcD----__" onsubmit="return submitForm(this,this);"
><a name="idcD----"/><input type="hidden" name="selector" value="idcD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="iddD----"><a name="idfD----"/>
<form action="#idfD----" method="POST" id="idfD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idfD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idgD----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Ct</mi>
</math>
</acronym> displayed by&nbsp;<em>Ct_d</em> as&nbsp;
<math xmlns="&mathml;">
<msup>
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle><mo>&bull;</mo>
</msup>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<msup>
<mstyle class="bvar"><mi>n</mi>
</mstyle><mo>&bull;</mo>
</msup><mo>=</mo><mn class="builtin">1</mn><mo class="builtin">,</mo><mi>n</mi
>
</math>
</td>
<td class="editbuttontd">
<form action="#idgD----" method="POST" id="idgD----__" onsubmit="return submitForm(this,this);"
><a name="idgD----"/><input type="hidden" name="selector" value="idgD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idhD----"><a name="idjD----"/>
<form action="#idjD----" method="POST" id="idjD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idjD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idkD----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">At</mi>
</math>
</acronym>&nbsp;/&nbsp;2 displayed by&nbsp;<em>At_d</em> as&nbsp;
<math xmlns="&mathml;">
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>+</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>#</mi><mn>2</mn>
</msub>
</mstyle>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>+</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>2</mn>
</msub>
</mstyle><mo>=</mo><mn class="builtin">2</mn><mo class="builtin">,</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo class="builtin">,</mo>
<msub><mi>t</mi><mn>2</mn>
</msub>
</math>
</td>
<td class="editbuttontd">
<form action="#idkD----" method="POST" id="idkD----__" onsubmit="return submitForm(this,this);"
><a name="idkD----"/><input type="hidden" name="selector" value="idkD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idlD----"><a name="idnD----"/>
<form action="#idnD----" method="POST" id="idnD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idnD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idoD----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Mt</mi>
</math>
</acronym>&nbsp;/&nbsp;2 displayed by&nbsp;<em>Mt_d</em> as&nbsp;
<math xmlns="&mathml;">
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>&times;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>#</mi><mn>2</mn>
</msub>
</mstyle>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>&times;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>2</mn>
</msub>
</mstyle><mo>=</mo><mn class="builtin">3</mn><mo class="builtin">,</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo class="builtin">,</mo>
<msub><mi>t</mi><mn>2</mn>
</msub>
</math>
</td>
<td class="editbuttontd">
<form action="#idoD----" method="POST" id="idoD----__" onsubmit="return submitForm(this,this);"
><a name="idoD----"/><input type="hidden" name="selector" value="idoD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idpD----"><a name="idrD----"/>
<form action="#idrD----" method="POST" id="idrD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idrD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idsD----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>4. ÚLOHA </b>(10 bodov) 
</p>
</td>
<td class="editbuttontd">
<form action="#idsD----" method="POST" id="idsD----__" onsubmit="return submitForm(this,this);"
><a name="idsD----"/><input type="hidden" name="selector" value="idsD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idtD----"><a name="idvD----"/>
<form action="#idvD----" method="POST" id="idvD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idvD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idwD----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p>Cieľom tejto úlohy je rozšíriť výrazy o novú operáciu <i>dvojnásobok
 </i>, ktorú zapíšeme 
<math xmlns="&mathml;">
<mi class="ident">Twt</mi>
<mrow><mo>(</mo><mi>t</mi><mo>)</mo>
</mrow>
</math>
(twice, dvakrát), zobrazí sa ako 
<math xmlns="&mathml;">
<mi class="ident">Tw_d</mi>
<mrow><mo>(</mo><mi>t</mi><mo>)</mo>
</mrow>
</math>
a jej významom je pripočítanie jednotky k argumentu. Zadefinujeme teda nový
 konštruktor 
<math xmlns="&mathml;">
<mi class="ident">Twt</mi>
</math>
. Príkladom výrazu, ktorý obsahuje operáciu dvojnásobok je 
<math xmlns="&mathml;">
<msub class="ident"><mi class="ident">T</mi><mn class="id_sub">4</mn>
</msub>
</math>
. 
</p>
</td>
<td class="editbuttontd">
<form action="#idwD----" method="POST" id="idwD----__" onsubmit="return submitForm(this,this);"
><a name="idwD----"/><input type="hidden" name="selector" value="idwD----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idxD----"><a name="idzD----"/>
<form action="#idzD----" method="POST" id="idzD----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idzD----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id0D----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Twt</mi>
</math>
</acronym> displayed by&nbsp;<em>Twt_d</em> as&nbsp;
<math xmlns="&mathml;">
<mn>2</mn>
<msup><mo>&sdot;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mn>2</mn>
<msup><mo>&sdot;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar"><mi>t</mi>
</mstyle><mo>=</mo><mn class="builtin">4</mn><mo class="builtin">,</mo><mi>t</mi
>
</math>
</td>
<td class="editbuttontd">
<form action="#id0D----" method="POST" id="id0D----__" onsubmit="return submitForm(this,this);"
><a name="id0D----"/><input type="hidden" name="selector" value="id0D----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id1D----"><a name="id3D----"/>
<form action="#id3D----" method="POST" id="id3D----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id3D----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id4D----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<msub class="inh_col_id"><mi class="inh_col_id">T</mi><mn class="id_sub">4</mn
>
</msub>
</math>
</span>&nbsp;/&nbsp;0</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<msub class="ident"><mi class="ident">T</mi><mn class="id_sub">4</mn>
</msub><mo>=</mo><mn>2</mn>
<msup><mo>&sdot;</mo><mo>&bull;</mo>
</msup>
<msubsup><mi mathvariant="bold">x</mi><mn class="builtin">0</mn><mo>&bull;</mo
>
</msubsup>
<msup><mo>+</mo><mo>&bull;</mo>
</msup>
<mrow><mo>(</mo>
<msubsup><mi mathvariant="bold">x</mi><mn class="builtin">0</mn><mo>&bull;</mo
>
</msubsup>
<msup><mo>&times;</mo><mo>&bull;</mo>
</msup>
<msup><mn class="builtin">7</mn><mo>&bull;</mo>
</msup>
<msup><mo>+</mo><mo>&bull;</mo>
</msup><mn>2</mn>
<msup><mo>&sdot;</mo><mo>&bull;</mo>
</msup>
<msubsup><mi mathvariant="bold">x</mi><mn class="builtin">1</mn><mo>&bull;</mo
>
</msubsup><mo>)</mo>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#id4D----" method="POST" id="id4D----__" onsubmit="return submitForm(this,this);"
><a name="id4D----"/><input type="hidden" name="selector" value="id4D----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id5D----"><a name="id7D----"/>
<form action="#id7D----" method="POST" id="id7D----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id7D----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="id8D----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>a) </b>(2 body) 
</p>
<p>Rozšírte definíciu predikátu-formátu 
<math xmlns="&mathml;">
<mi class="ident">Term</mi>
</math>
(na mieste 
<math xmlns="&mathml;">
<mi class="ident">Term</mi>
<mrow><mo>(</mo><mo>&ctdot;</mo><mo>)</mo>
</mrow>
</math>
) tak, aby zahŕňala aj operáciu dvojnásobok. 
</p>
</td>
<td class="editbuttontd">
<form action="#id8D----" method="POST" id="id8D----__" onsubmit="return submitForm(this,this);"
><a name="id8D----"/><input type="hidden" name="selector" value="id8D----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="id9D----"><a name="id-E----"/>
<form action="#id-E----" method="POST" id="id-E----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="id-E----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idAE----" class="fill">
<tr>
<td class="fill"><span class="header">Predicate&nbsp;<acronym title="This predicate is a format"
 class="pred_format">
<math xmlns="&mathml;">
<mi class="inh_col_id">Term</mi>
</math>
</acronym></span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Term</mi>
<mrow><mo>(</mo>
<msubsup><mi mathvariant="bold">x</mi>
<mstyle class="bvar"><mi>i</mi>
</mstyle><mo>&bull;</mo>
</msubsup><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">N</mi>
<mrow><mo>(</mo><mi>i</mi><mo>)</mo>
</mrow>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Term</mi>
<mrow><mo>(</mo>
<msup>
<mstyle class="bvar"><mi>n</mi>
</mstyle><mo>&bull;</mo>
</msup><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">N</mi>
<mrow><mo>(</mo><mi>n</mi><mo>)</mo>
</mrow>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Term</mi>
<mrow><mo>(</mo>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>+</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>2</mn>
</msub>
</mstyle><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">Term</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo>)</mo>
</mrow>
</mrow><mo>&and;</mo>
<mrow><mi class="ident">Term</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>2</mn>
</msub><mo>)</mo>
</mrow>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Term</mi>
<mrow><mo>(</mo>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>&times;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>2</mn>
</msub>
</mstyle><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">Term</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo>)</mo>
</mrow>
</mrow><mo>&and;</mo>
<mrow><mi class="ident">Term</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>2</mn>
</msub><mo>)</mo>
</mrow>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Term</mi>
<mrow><mo>(</mo><mn>2</mn>
<msup><mo>&sdot;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">Term</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo>)</mo>
</mrow>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idAE----" method="POST" id="idAE----__" onsubmit="return submitForm(this,this);"
><a name="idAE----"/><input type="hidden" name="selector" value="idAE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idBE----"><a name="idDE----"/>
<form action="#idDE----" method="POST" id="idDE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idDE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idEE----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>b) </b>(2 body) 
</p>
<p>Rozšírte definíciu denotačnej funkcie 
<math xmlns="&mathml;">
<mi class="ident">Den</mi>
</math>
tak, aby priraďovala význam aj termom s operáciou dvojnásobok. 
</p>
</td>
<td class="editbuttontd">
<form action="#idEE----" method="POST" id="idEE----__" onsubmit="return submitForm(this,this);"
><a name="idEE----"/><input type="hidden" name="selector" value="idEE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idFE----"><a name="idHE----"/>
<form action="#idHE----" method="POST" id="idHE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idHE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idIE----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Den</mi>
</math>
</span>&nbsp;/&nbsp;2 displayed by&nbsp;<em>Den_d</em> as&nbsp;
<math xmlns="&mathml;">
<msup>
<mrow><mo>&lobrk;</mo>
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle><mo>&robrk;</mo>
</mrow>
<mstyle class="bvar">
<msub><mi>#</mi><mn>2</mn>
</msub>
</mstyle>
</msup>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<msup>
<mrow><mo>&lobrk;</mo>
<msubsup><mi mathvariant="bold">x</mi>
<mstyle class="bvar"><mi>i</mi>
</mstyle><mo>&bull;</mo>
</msubsup><mo>&robrk;</mo>
</mrow>
<mstyle class="bvar"><mi>v</mi>
</mstyle>
</msup><mo>=</mo>
<msub>
<mrow><mo>(</mo><mi>v</mi><mo>)</mo>
</mrow><mi>i</mi>
</msub>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<msup>
<mrow><mo>&lobrk;</mo>
<msup>
<mstyle class="bvar"><mi>n</mi>
</mstyle><mo>&bull;</mo>
</msup><mo>&robrk;</mo>
</mrow>
<mstyle class="bvar"><mi>v</mi>
</mstyle>
</msup><mo>=</mo><mi>n</mi>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<msup>
<mrow><mo>&lobrk;</mo>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>+</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>2</mn>
</msub>
</mstyle><mo>&robrk;</mo>
</mrow>
<mstyle class="bvar"><mi>v</mi>
</mstyle>
</msup><mo>=</mo>
<msup>
<mrow><mo>&lobrk;</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo>&robrk;</mo>
</mrow><mi>v</mi>
</msup><mo class="builtin">+</mo>
<msup>
<mrow><mo>&lobrk;</mo>
<msub><mi>t</mi><mn>2</mn>
</msub><mo>&robrk;</mo>
</mrow><mi>v</mi>
</msup>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<msup>
<mrow><mo>&lobrk;</mo>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>&times;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>2</mn>
</msub>
</mstyle><mo>&robrk;</mo>
</mrow>
<mstyle class="bvar"><mi>v</mi>
</mstyle>
</msup><mo>=</mo>
<msup>
<mrow><mo>&lobrk;</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo>&robrk;</mo>
</mrow><mi>v</mi>
</msup><mo class="builtin">&sdot;</mo>
<msup>
<mrow><mo>&lobrk;</mo>
<msub><mi>t</mi><mn>2</mn>
</msub><mo>&robrk;</mo>
</mrow><mi>v</mi>
</msup>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<msup>
<mrow><mo>&lobrk;</mo><mn>2</mn>
<msup><mo>&sdot;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle><mo>&robrk;</mo>
</mrow>
<mstyle class="bvar"><mi>v</mi>
</mstyle>
</msup><mo>=</mo><mi>a</mi><mo class="builtin">&sdot;</mo><mn class="builtin"
>2</mn><mo>&larr;</mo>
<mrow>
<msup>
<mrow><mo>&lobrk;</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo>&robrk;</mo>
</mrow><mi>v</mi>
</msup><mo>=</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idIE----" method="POST" id="idIE----__" onsubmit="return submitForm(this,this);"
><a name="idIE----"/><input type="hidden" name="selector" value="idIE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idJE----"><a name="idLE----"/>
<form action="#idLE----" method="POST" id="idLE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idLE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idME----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><i>Postfixový stroj </i>
</p>
<p class="indented">Nasledujúce komponenty definujú postfixový stroj: kódovanie
 jeho štyroch inštrukcií; predikáty-formáty inštrukcií a programov; funkcia
 
<math xmlns="&mathml;">
<mi class="ident">Run</mi>
<mrow><mo>(</mo><mi>p</mi><mo>,</mo><mi>s</mi><mo>)</mo>
</mrow>
</math>
, ktorá simuluje beh stroja pre program 
<math xmlns="&mathml;">
<mi>p</mi>
</math>
a zásobník 
<math xmlns="&mathml;">
<mi>s</mi>
</math>
. Postfixový stroj nemá žiadne registre, inštrukcie vyberajú vstupné dáta
 (ak ich potrebujú) zo zásobníka a ukladajú výsledky na zásobník. 
</p>
<p class="indented">Tieto komponenty nemeňte! Zadanie 4c je nižšie. 
</p>
</td>
<td class="editbuttontd">
<form action="#idME----" method="POST" id="idME----__" onsubmit="return submitForm(this,this);"
><a name="idME----"/><input type="hidden" name="selector" value="idME----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idNE----"><a name="idPE----"/>
<form action="#idPE----" method="POST" id="idPE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idPE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idQE----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Vi</mi>
</math>
</acronym> displayed by&nbsp;<em>Vi_d</em> as&nbsp;
<math xmlns="&mathml;">
<mi class="adident">LOAD</mi>
<mrow><mo>(</mo>
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle><mo>)</mo>
</mrow>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="adident">LOAD</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>i</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mn class="builtin">0</mn><mo class="builtin">,</mo><mi>i</mi
>
</math>
</td>
<td class="editbuttontd">
<form action="#idQE----" method="POST" id="idQE----__" onsubmit="return submitForm(this,this);"
><a name="idQE----"/><input type="hidden" name="selector" value="idQE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idRE----"><a name="idTE----"/>
<form action="#idTE----" method="POST" id="idTE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idTE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idUE----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Ci</mi>
</math>
</acronym> displayed by&nbsp;<em>Ci_d</em> as&nbsp;
<math xmlns="&mathml;">
<mi class="adident">PUSH</mi>
<mrow><mo>(</mo>
<mstyle class="bvar">
<msub><mi>#</mi><mn>1</mn>
</msub>
</mstyle><mo>)</mo>
</mrow>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="adident">PUSH</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>n</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mn class="builtin">1</mn><mo class="builtin">,</mo><mi>n</mi
>
</math>
</td>
<td class="editbuttontd">
<form action="#idUE----" method="POST" id="idUE----__" onsubmit="return submitForm(this,this);"
><a name="idUE----"/><input type="hidden" name="selector" value="idUE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idVE----"><a name="idXE----"/>
<form action="#idXE----" method="POST" id="idXE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idXE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idYE----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Ai</mi>
</math>
</acronym>&nbsp;/&nbsp;0 displayed by&nbsp;<em>Ai_d</em> as&nbsp;
<math xmlns="&mathml;">
<mi class="adident">ADD</mi>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="adident">ADD</mi><mo>=</mo><mn class="builtin">2</mn><mo class="builtin"
>,</mo><mn class="builtin">0</mn>
</math>
</td>
<td class="editbuttontd">
<form action="#idYE----" method="POST" id="idYE----__" onsubmit="return submitForm(this,this);"
><a name="idYE----"/><input type="hidden" name="selector" value="idYE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idZE----"><a name="idbE----"/>
<form action="#idbE----" method="POST" id="idbE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idbE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idcE----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<acronym title="This function is a constructor"
 class="fun_constr">
<math xmlns="&mathml;">
<mi class="inh_col_id">Mi</mi>
</math>
</acronym>&nbsp;/&nbsp;0 displayed by&nbsp;<em>Mi_d</em> as&nbsp;
<math xmlns="&mathml;">
<mi class="adident">MUL</mi>
</math>
</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="adident">MUL</mi><mo>=</mo><mn class="builtin">3</mn><mo class="builtin"
>,</mo><mn class="builtin">0</mn>
</math>
</td>
<td class="editbuttontd">
<form action="#idcE----" method="POST" id="idcE----__" onsubmit="return submitForm(this,this);"
><a name="idcE----"/><input type="hidden" name="selector" value="idcE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="iddE----"><a name="idfE----"/>
<form action="#idfE----" method="POST" id="idfE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idfE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idgE----" class="fill">
<tr>
<td class="fill"><span class="header">Predicate&nbsp;<acronym title="This predicate is a format"
 class="pred_format">
<math xmlns="&mathml;">
<mi class="inh_col_id">Instr</mi>
</math>
</acronym></span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Instr</mi><mi class="adident">LOAD</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>i</mi>
</mstyle><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">N</mi>
<mrow><mo>(</mo><mi>i</mi><mo>)</mo>
</mrow>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Instr</mi><mi class="adident">PUSH</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>n</mi>
</mstyle><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">N</mi>
<mrow><mo>(</mo><mi>n</mi><mo>)</mo>
</mrow>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Instr</mi>
<mrow><mo>(</mo><mi class="adident">ADD</mi><mo>)</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Instr</mi>
<mrow><mo>(</mo><mi class="adident">MUL</mi><mo>)</mo>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idgE----" method="POST" id="idgE----__" onsubmit="return submitForm(this,this);"
><a name="idgE----"/><input type="hidden" name="selector" value="idgE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idhE----"><a name="idjE----"/>
<form action="#idjE----" method="POST" id="idjE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idjE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idkE----" class="fill">
<tr>
<td class="fill"><span class="header">Predicate&nbsp;<acronym title="This predicate is a format"
 class="pred_format">
<math xmlns="&mathml;">
<mi class="inh_col_id">Program</mi>
</math>
</acronym></span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Program</mi>
<mrow><mo>(</mo><mn class="builtin">0</mn><mo>)</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Program</mi>
<mrow><mo>(</mo>
<mstyle class="bvar"><mi>i</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo>)</mo>
</mrow><mo>&larr;</mo>
<mrow><mi class="ident">Instr</mi>
<mrow><mo>(</mo><mi>i</mi><mo>)</mo>
</mrow>
</mrow><mo>&and;</mo>
<mrow><mi class="ident">Program</mi>
<mrow><mo>(</mo><mi>p</mi><mo>)</mo>
</mrow>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idkE----" method="POST" id="idkE----__" onsubmit="return submitForm(this,this);"
><a name="idkE----"/><input type="hidden" name="selector" value="idkE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idlE----"><a name="idnE----"/>
<form action="#idnE----" method="POST" id="idnE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idnE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idoE----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Run</mi>
</math>
</span>&nbsp;/&nbsp;2</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Run</mi>
<mrow><mo>(</mo><mn class="builtin">0</mn><mo>,</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>s</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi>a</mi>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Run</mi>
<mrow><mo>(</mo>
<mrow><mo class="cp2">(</mo><mi class="adident">LOAD</mi>
<mrow><mo class="cp3">(</mo>
<mstyle class="bvar"><mi>i</mi>
</mstyle><mo class="cp3">)</mo>
</mrow><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo class="cp2">)</mo>
</mrow><mo>,</mo>
<mstyle class="bvar"><mi>s</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Run</mi>
<mrow><mo>(</mo><mi>p</mi><mo>,</mo>
<msub>
<mrow><mo class="cp2">(</mo><mi>s</mi><mo class="cp2">)</mo>
</mrow><mi>i</mi>
</msub><mo class="builtin">,</mo><mi>s</mi><mo>)</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Run</mi>
<mrow><mo>(</mo>
<mrow><mo class="cp2">(</mo><mi class="adident">PUSH</mi>
<mrow><mo class="cp3">(</mo>
<mstyle class="bvar"><mi>n</mi>
</mstyle><mo class="cp3">)</mo>
</mrow><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo class="cp2">)</mo>
</mrow><mo>,</mo>
<mstyle class="bvar"><mi>s</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Run</mi>
<mrow><mo>(</mo><mi>p</mi><mo>,</mo><mi>n</mi><mo class="builtin">,</mo><mi>s</mi
><mo>)</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Run</mi>
<mrow><mo>(</mo>
<mrow><mo class="cp2">(</mo><mi class="adident">ADD</mi><mo class="builtin">,</mo
>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo class="cp2">)</mo>
</mrow><mo>,</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>b</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>s</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Run</mi>
<mrow><mo>(</mo><mi>p</mi><mo>,</mo><mi>a</mi><mo class="builtin">+</mo><mi>b</mi
><mo class="builtin">,</mo><mi>s</mi><mo>)</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Run</mi>
<mrow><mo>(</mo>
<mrow><mo class="cp2">(</mo><mi class="adident">MUL</mi><mo class="builtin">,</mo
>
<mstyle class="bvar"><mi>p</mi>
</mstyle><mo class="cp2">)</mo>
</mrow><mo>,</mo>
<mstyle class="bvar"><mi>a</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>b</mi>
</mstyle><mo class="builtin">,</mo>
<mstyle class="bvar"><mi>s</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Run</mi>
<mrow><mo>(</mo><mi>p</mi><mo>,</mo><mi>a</mi><mo class="builtin">&sdot;</mo
><mi>b</mi><mo class="builtin">,</mo><mi>s</mi><mo>)</mo>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idoE----" method="POST" id="idoE----__" onsubmit="return submitForm(this,this);"
><a name="idoE----"/><input type="hidden" name="selector" value="idoE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idpE----"><a name="idrE----"/>
<form action="#idrE----" method="POST" id="idrE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idrE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idsE----" class="fill">
<tr>
<td class="fill">
<div class="header">Remark
<math xmlns="&mathml;">
<mi class="comp_id_hdr"></mi>
</math>
</div>
<p><b>c) </b>(6 bodov) 
</p>
<p>Doplňte definíciu kompilačnej funkcie tak, aby kompilovala výrazy obsahujúce
 operáciu dvojnásobok do programov pre postfixový stroj. Na skompilovanie
 dvojnásobku stačia inštrukcie uvedené vyššie. 
</p>
</td>
<td class="editbuttontd">
<form action="#idsE----" method="POST" id="idsE----__" onsubmit="return submitForm(this,this);"
><a name="idsE----"/><input type="hidden" name="selector" value="idsE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idtE----"><a name="idvE----"/>
<form action="#idvE----" method="POST" id="idvE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idvE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Ins/Del" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
<td><input type="submit" name="char" value="Expand" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
<table id="idwE----" class="fill">
<tr>
<td class="fill"><span class="header">Function&nbsp;<span class="comp_id_hdr"
>
<math xmlns="&mathml;">
<mi class="inh_col_id">Comp</mi>
</math>
</span>&nbsp;/&nbsp;2</span><br/>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Comp</mi>
<mrow><mo>(</mo>
<msubsup><mi mathvariant="bold">x</mi>
<mstyle class="bvar"><mi>i</mi>
</mstyle><mo>&bull;</mo>
</msubsup><mo>,</mo>
<mstyle class="bvar"><mi>j</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="adident">LOAD</mi>
<mrow><mo>(</mo><mi>i</mi><mo class="builtin">+</mo><mi>j</mi><mo>)</mo>
</mrow><mo class="builtin">,</mo><mn class="builtin">0</mn>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Comp</mi>
<mrow><mo>(</mo>
<msup>
<mstyle class="bvar"><mi>n</mi>
</mstyle><mo>&bull;</mo>
</msup><mo>,</mo>
<mstyle class="bvar"><mi>j</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="adident">PUSH</mi>
<mrow><mo>(</mo><mi>n</mi><mo>)</mo>
</mrow><mo class="builtin">,</mo><mn class="builtin">0</mn>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Comp</mi>
<mrow><mo>(</mo>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>+</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>2</mn>
</msub>
</mstyle><mo>,</mo>
<mstyle class="bvar"><mi>j</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Comp</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo>,</mo><mi>j</mi><mo>)</mo>
</mrow><mo class="builtin">&oplus;</mo><mi class="ident">Comp</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>2</mn>
</msub><mo>,</mo><mi>j</mi><mo class="builtin">+</mo><mn class="builtin">1</mn
><mo>)</mo>
</mrow><mo class="builtin">&oplus;</mo>
<mrow><mo>(</mo><mi class="adident">ADD</mi><mo class="builtin">,</mo><mn class="builtin"
>0</mn><mo>)</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Comp</mi>
<mrow><mo>(</mo>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle>
<msup><mo>&times;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>2</mn>
</msub>
</mstyle><mo>,</mo>
<mstyle class="bvar"><mi>j</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Comp</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo>,</mo><mi>j</mi><mo>)</mo>
</mrow><mo class="builtin">&oplus;</mo><mi class="ident">Comp</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>2</mn>
</msub><mo>,</mo><mi>j</mi><mo class="builtin">+</mo><mn class="builtin">1</mn
><mo>)</mo>
</mrow><mo class="builtin">&oplus;</mo>
<mrow><mo>(</mo><mi class="adident">MUL</mi><mo class="builtin">,</mo><mn class="builtin"
>0</mn><mo>)</mo>
</mrow>
</math>
<math xmlns="&mathml;" mode="display" class="clause">
<mi class="ident">Comp</mi>
<mrow><mo>(</mo><mn>2</mn>
<msup><mo>&sdot;</mo><mo>&bull;</mo>
</msup>
<mstyle class="bvar">
<msub><mi>t</mi><mn>1</mn>
</msub>
</mstyle><mo>,</mo>
<mstyle class="bvar"><mi>j</mi>
</mstyle><mo>)</mo>
</mrow><mo>=</mo><mi class="ident">Comp</mi>
<mrow><mo>(</mo>
<msub><mi>t</mi><mn>1</mn>
</msub><mo>,</mo><mi>j</mi><mo>)</mo>
</mrow><mo class="builtin">&oplus;</mo>
<mrow><mo>(</mo><mi class="adident">PUSH</mi>
<mrow><mo class="cp2">(</mo><mn class="builtin">2</mn><mo class="cp2">)</mo>
</mrow><mo class="builtin">,</mo><mi class="adident">MUL</mi><mo class="builtin"
>,</mo><mn class="builtin">0</mn><mo>)</mo>
</mrow>
</math>
</td>
<td class="editbuttontd">
<form action="#idwE----" method="POST" id="idwE----__" onsubmit="return submitForm(this,this);"
><a name="idwE----"/><input type="hidden" name="selector" value="idwE----"/><input
 type="submit" name="action" value="Edit" class="editbutton" onclick="return submitForm(this.form,this);"
/><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
</td>
</tr>
</table>
</div>
<div id="idxE----"><a name="idyE----"/>
<form action="#idyE----" method="POST" id="idyE----" onsubmit="return submitForm(this,this);"
><input type="hidden" name="action" value="button"/><input type="hidden" name="selector"
 value="idyE----"/>
<table class="fill">
<tr>
<td><pre><span class="fg3"></span></pre>
</td>
<td class="fill">
<hr/>
</td>
<td><input type="submit" name="char" value="Insert" class="button" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table>
</form>
</div>
</div>
<table class="fill">
<tr>
<td class="vert_sep_name">Query:
</td>
<td class="fill">
<hr/>
</td>
</tr>
</table>
<form action="#id0E----" method="POST" id="id0E----" onsubmit="return submitForm(this,this);"
><a name="id0E----"/><input type="hidden" name="selector" value="id0E----"/>
<table class="fill">
<tr>
<td class="fill"><textarea name="data" cols="78" rows="3">0 = x

</textarea>
</td>
<td class="editbuttontd"><input type="submit" name="action" value="OK" class="editbutton"
 onclick="return submitForm(this.form,this);"/><br/><input type="submit" name="action"
 value="Cancel" class="editbutton" onclick="return submitForm(this.form,this);"
/>
</td>
</tr>
</table><input type="hidden" name="xoff" value="0"/><input type="hidden" name="yoff"
 value="0"/>
</form>
<table class="fill">
<tr>
<td class="vert_sep_name">Results:
</td>
<td class="fill">
<hr/>
</td>
</tr>
</table>
<div id="id1E----" class="fill"><a name="id1E----"/>
<div>Heap used:&nbsp;394952 free:&nbsp;133822024
</div>
<div>Time used:&nbsp;0:0:0:3
</div>
</div>
</div>
</div>
</body></html>