<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>[CS@TUK] Questions and Answers - Recent questions and answers in # Study-Organisation (Bachelor)</title>
<link>https://q2a.cs.uni-kl.de/qa/%23-study-organisation-ba</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: Kurz eine Frage über May-Used-Variablen im AK WS23/24</title>
<link>https://q2a.cs.uni-kl.de/4067/kurz-eine-frage-%C3%BCber-may-used-variablen-im-ak-ws23-24?show=4071#a4071</link>
<description>Ich habe die Frage nicht wirklich nachvollziehen können, aber die Gleichungen in der Musterlösung stimmten nicht und wurden nun korrigiert.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/4067/kurz-eine-frage-%C3%BCber-may-used-variablen-im-ak-ws23-24?show=4071#a4071</guid>
<pubDate>Sat, 27 Jul 2024 10:14:48 +0000</pubDate>
</item>
<item>
<title>Answered: Eine Frage über Pip. füllen</title>
<link>https://q2a.cs.uni-kl.de/4068/eine-frage-%C3%BCber-pip-f%C3%BCllen?show=4069#a4069</link>
<description>Die Frage ist natürlich sehr berechtigt. Ursprünglich ging es bei dieser Fragestellung eher um die Zahl der eingefügten NOP-Operationen, da diese aber in einer Schleife ausgeführt werden, ist es besser nach der Zeit für die Ausführung zu fragen. Betrachtet man Pipelines gehört aber auch das Füllen bzw. Leeren der Pipeline dazu, so dass zu der Zahl der ausgeführten Befehle noch die Länge der Pipeline minus 1 hinzukommt. Beide Lösungen werden hier als korrekt angesehen, da es primär um die Zahl der ausgeführten NOP-Anweisungen geht. Die wirkliche Zahl der Takte muss aber schon auch noch das Füllen bzw. Leeren der Pipeline berücksichtigen. Die Korrektur ist hier aber großzügig.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/4068/eine-frage-%C3%BCber-pip-f%C3%BCllen?show=4069#a4069</guid>
<pubDate>Sat, 27 Jul 2024 09:22:24 +0000</pubDate>
</item>
<item>
<title>Answered: ich habe erfolglos versucht, es zu vestehen. kann ich bitte geholfen werden?</title>
<link>https://q2a.cs.uni-kl.de/4061/habe-erfolglos-versucht-vestehen-kann-bitte-geholfen-werden?show=4062#a4062</link>
<description>Die Tabelle stellt den Verlauf des Caches nach den angegebenen Lade/Speicherbefehlen dar. Links oben finden Sie den Ladebefehl L(0), d.h. man lädt zunächst Adresse 0 in den Cache. Diese befindet sich zusammen mit Adresse 1 im Block 0 des Hauptspeichers und daher wird dieser Block in Block 0 des Caches geladen. Der Vorgang ergab dabei einen Cache-Miss (M).&lt;br /&gt;
&lt;br /&gt;
Danach wird Adresse 15 geladen, d.h. L(15) wird ausgeführt. Die Adresse 15 befindet sich zusammen mit der Adresse 14 in im Block 7, so dass dieser Block geladen wird. Block 7 des Hauptspeichers wird in Block 3 des Caches geladen.&lt;br /&gt;
&lt;br /&gt;
Danach wird ein Wert in Adresse 16 gespeichert, d.h. S(16) wird ausgeführt. Die Adresse 16 befindet sich zusammen mit der Adresse 17 in im Block 8, so dass dieser Block in Block 0 des Caches geladen wird und dabei wird der dort vorhandene Block 0 des Hauptspeichers verdrängt.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/4061/habe-erfolglos-versucht-vestehen-kann-bitte-geholfen-werden?show=4062#a4062</guid>
<pubDate>Mon, 24 Jun 2024 15:09:37 +0000</pubDate>
</item>
<item>
<title>Nachfrage zu Aufgabe 2b | Sheet 7 | RoSy</title>
<link>https://q2a.cs.uni-kl.de/4051/nachfrage-zu-aufgabe-2b-sheet-7-rosy</link>
<description>&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color:#e74c3c&quot;&gt;FEHLER WURDE GEFUNDEN - Frage ist damit irrelevant.&lt;/span&gt;&lt;/strong&gt;&lt;br&gt;&lt;br&gt;Eine Frage zur Aufgabe 2b auf Sheet 7.&lt;/p&gt;&lt;p&gt;Ich habe folgende Constraints erhalten:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;E -&amp;gt; TA&lt;/strong&gt; yields Follow(E)&amp;nbsp;⊆ Follow(A)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;A -&amp;gt; +TA &lt;/strong&gt;yields (First(A)\{ε}) ⊆ Follow(T)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;A -&amp;gt; ε&lt;/strong&gt; yields nothing&lt;/li&gt;&lt;li&gt;&lt;strong&gt;T -&amp;gt; FB&lt;/strong&gt; yields Follow(T) ⊆ Follow(B)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;B -&amp;gt; *FB&lt;/strong&gt; yields (First(B)\{ε}) ⊆ Follow(F)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;F -&amp;gt; (E)&lt;/strong&gt; yields (First(&quot;)&quot;)\{ε}) ⊆ Follow(E)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;F -&amp;gt; n&lt;/strong&gt; yields Follow(F) ⊆&amp;nbsp;Follow(n) irrelevant??&lt;/li&gt;&lt;li&gt;&lt;strong&gt;F -&amp;gt; v&lt;/strong&gt; yields Follow(F) ⊆&amp;nbsp;Follow(v) irrelevant??&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;Dadurch folgt das Gleichungssystem:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Follow(E) = {$)&amp;nbsp;∪ (First(&quot;)&quot;)\{ε}) = {$} ∪ {)} = {$,)}&lt;/li&gt;&lt;li&gt;Follow(A) = Follow(E)&lt;/li&gt;&lt;li&gt;Follow(T) = First(A)\{ε}&amp;nbsp;= {+}&lt;/li&gt;&lt;li&gt;Follow(B) = Follow(T)&lt;/li&gt;&lt;li&gt;Follow(F) = First(B)\{ε} = {*}&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Wenn ich dieses nun aber auflöse, so erhalte ich doch lediglich folgendes Follow-Set:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Follow(E) = {$,)}&lt;/li&gt;&lt;li&gt;Follow(A) = {$,)}&lt;/li&gt;&lt;li&gt;Follow(T) = {+}&lt;/li&gt;&lt;li&gt;Follow(B) = {+}&lt;/li&gt;&lt;li&gt;Follow(F) = {*}&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Laut Lösung fehlen bei Follow(T, B &amp;amp; F) jedoch erstmal das $-Zeichen - woher kommt dieses? Und außerdem fehlt bei allen ')' - woher kommt dieses? Und bei Follow(F) fehlt noch das &quot;+&quot; - wie entsteht dieses nach dem Gleichungssystem oben?&lt;br&gt;&lt;br&gt;-------------------------------------&lt;br&gt;&lt;br&gt;Anmerkung: Der Fehler wurde gefunden, ich habe vergessen die verschiedenen Formeln in Betracht zu ziehen, und nicht auch mehrere für die gleiche Ableitung. (Folie 152)&lt;/p&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/4051/nachfrage-zu-aufgabe-2b-sheet-7-rosy</guid>
<pubDate>Thu, 21 Mar 2024 11:50:48 +0000</pubDate>
</item>
<item>
<title>Answered: Nachfrage zu Aufgabe 1d | Sheet 7 | RoSy</title>
<link>https://q2a.cs.uni-kl.de/4046/nachfrage-zu-aufgabe-1d-sheet-7-rosy?show=4047#a4047</link>
<description>&lt;p&gt;Bei der Aufgabe 1d darf man nur Kettenproduktionen für die Erreichbarkeit betrachten (während in der Aufgabe 1e die Erreichbarkeit allgemein betrachtet wird). Daher darf man die Regel E-&amp;gt;B+H nicht verwenden hat nur die folgenden Ableitungen mit Kettenproduktionen:&lt;/p&gt;&lt;pre&gt;    A -&amp;gt; C -&amp;gt; D -&amp;gt; H
    A -&amp;gt; C -&amp;gt; G
    C -&amp;gt; D -&amp;gt; H
    C -&amp;gt; G
    E -&amp;gt; F -&amp;gt; B&lt;/pre&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/4046/nachfrage-zu-aufgabe-1d-sheet-7-rosy?show=4047#a4047</guid>
<pubDate>Wed, 20 Mar 2024 11:44:28 +0000</pubDate>
</item>
<item>
<title>Answered: Reduces in Aktionstabellen</title>
<link>https://q2a.cs.uni-kl.de/4044/reduces-in-aktionstabellen?show=4045#a4045</link>
<description>&lt;p&gt;Schauen Sie sich dazu die Folie 181 für einen LR(0) Parser an. Dort sehen Sie folgendes&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Shift-Aktion: Wenn ein Zustand qi eine Regel A-&amp;gt;α.aβ mit einem Terminalzeichen a enthält, dann führt der Parser eine Shift-Aktion aus und geht in den Folgezustand gemäß dem Automaten über.&lt;/li&gt;&lt;li&gt;Accept-Aktion: Wenn ein Zustand qi die Regel S′ → S. enthält und die Eingabe leer ist, wird die Eingabe akzeptiert.&lt;/li&gt;&lt;li&gt;Reduce-Aktion: Wenn qi eine &quot;vollständige Regel&quot; B → γ. enhält, dann führt der Parser eine Reduktion mit der Regel B → γ aus. Dazu wird vom Stack das Wort γ, welches sich oben auf dem Stack befindet, mit allen darin enthaltenen Zuständen entfernt und vom darunter liegenden &amp;nbsp;Zustand wird dann B gelesen und ein Folgezustand gemäß dem Automaten erreicht.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Die Tabelle wird nun wie oben beschrieben definiert. Leider gibt es einige Grammatiken, die nicht die LR(0)-Eigenschaft haben, die man aber dennoch einfach in Griff bekommt, wenn sie die SLR(1)-Eigenschaft haben. Diese wird auf Folie 184 erklärt und verfeinert die Reduce-Aktionen so, dass zusätzlich verlangt wird, dass der nächste Buchstabe im Eingabwort in Follow(B) liegen muss. Ich denke, dass die Folie 184 die Antwort auf Ihre Frage liefert!&lt;/p&gt;&lt;p&gt;Schauen wir nun den Automaten aus der Klausur 30.03.2021 an:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://q2a.cs.uni-kl.de/?qa=blob&amp;amp;qa_blobid=348960375044860836&quot; style=&quot;height:193px; width:600px&quot;&gt;&lt;/p&gt;&lt;p&gt;Wir finden folgende vollständige Regeln (also mit Punkt am Ende):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;A' -&amp;gt; A. in state1&lt;/li&gt;&lt;li&gt;A -&amp;gt; aB. in state3&lt;/li&gt;&lt;li&gt;B -&amp;gt; a. in state4&lt;/li&gt;&lt;li&gt;B -&amp;gt; bAB. in state7&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Bei einem LR(0)-Parser würden diese Reduce-Aktionen in den jeweiligen Zuständen ausgeführt werden, bei einem SLR(1)-Parser jedoch nur, wenn das nächste Eingabezeichen in Follow(A) bzw. Follow(B) liegt.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Da wir in diesem Beispiel Follow(A) = Follow(B) = {$,a,b} haben, werden diese Reduce-Aktionen also nur für die nächsten Eingaben $,a,b ausgeführt. Da dieser Automat aber ohnehin die LR(0)-Eigenschaft hat, wäre es nicht schlimm, diese Aktionen grundsätzlich (also für alle Eingaben) in diesen Zuständen auszuführen, da sie keine Shift/Reduce-Konflikte provozieren würden.&lt;/p&gt;&lt;p&gt;Schauen wir nun aber die Klausur vom 23.07.2021 an: Hier haben wir folgende Grammatik:&lt;/p&gt;&lt;pre&gt;    S-&amp;gt;Ab|bS
    A-&amp;gt;aA|a
&lt;/pre&gt;&lt;p&gt;für die der folgende Automat generiert wird:&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://q2a.cs.uni-kl.de/?qa=blob&amp;amp;qa_blobid=14565239854687987234&quot; style=&quot;height:393px; width:600px&quot;&gt;&lt;/p&gt;&lt;p&gt;Wir finden folgende vollständige Regeln (also mit Punkt am Ende):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;S' -&amp;gt; S. in state2&lt;/li&gt;&lt;li&gt;A -&amp;gt; a. in state3&lt;/li&gt;&lt;li&gt;S -&amp;gt; Ab. in state5&lt;/li&gt;&lt;li&gt;A -&amp;gt; aA. in state6&lt;/li&gt;&lt;li&gt;S -&amp;gt; bS. in state7&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Diese Grammatik hat nicht die LR(0)-Eigenschaft, da wir im Zustand state3 sowohl mit A -&amp;gt; a. reduzieren könnten als auch &quot;a&quot; schieben könnten.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Aber die Grammatik hat die SLR(1)-Eigenschaft, denn wir haben Follow(S) = {$} und Follow(A) = {b}. Also wird in Zustand state3 nur dann mit A -&amp;gt; a reduziert, wenn die nächste Eingabe b ist, während bei Eingabe a geschoben wird. Entsprechend sind die anderen Aktionen definiert.&lt;/p&gt;&lt;p&gt;Mit SLR(1)-Parsern kann man alle deterministische kontextfreie Sprachen parsen, so dass man in der Regel diese Parser verwendet und nicht die LR(0)-Parser, die fast identisch sind, aber Shift/Reduce-Konflikte haben, die SRL(1)-Parser nicht haben.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/4044/reduces-in-aktionstabellen?show=4045#a4045</guid>
<pubDate>Mon, 18 Mar 2024 16:48:25 +0000</pubDate>
</item>
<item>
<title>Answered: Wann soll das Programm zurückschreiben?  WB in Cache Architektur,Rosy.</title>
<link>https://q2a.cs.uni-kl.de/4042/wann-soll-programm-zur%C3%BCckschreiben-cache-architektur-rosy?show=4043#a4043</link>
<description>Wenn ein Block durch einen Speicherbefehl verändert worden ist, dann muss der Block im Speicher aktualisiert werden, bevor ihn ein anderer Block verdrängt. Dazu muss man ein &amp;quot;dirty&amp;quot;-Bit pro Block speichert, welches gesetzt wird, wenn der Block verändert wird. Zurückschreiben in den Hauptspeicher ist aufwändig, so dass man dies nur machen sollte, wenn veränderte Blöcke verdrängt werden. Im Abacus-Simulator werden diese Blöcke farblich gekennzeichnet.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/4042/wann-soll-programm-zur%C3%BCckschreiben-cache-architektur-rosy?show=4043#a4043</guid>
<pubDate>Mon, 18 Mar 2024 13:07:58 +0000</pubDate>
</item>
<item>
<title>FSM erstellen</title>
<link>https://q2a.cs.uni-kl.de/4011/fsm-erstellen</link>
<description>Ich habe bei Alte Klausur SS 2014 , SS 2017 nicht verstanden, wie man FSM Diagramm erstellt, es wäre lieb, wenn jemand mir erklärt, wie man FSM Diagramm erstellt mit Hilfe von der Aufgabe Stellung</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/4011/fsm-erstellen</guid>
<pubDate>Thu, 01 Feb 2024 10:39:22 +0000</pubDate>
</item>
<item>
<title>Answered: Krikpe structures</title>
<link>https://q2a.cs.uni-kl.de/2744/krikpe-structures?show=2745#a2745</link>
<description>I do not understand this question. What is the set which is ordered and what is the relation on that set that you are talking about? It seems that you want to order states of a state transition system which is typically not done.&lt;br /&gt;
&lt;br /&gt;
If so, yes, then reflexivity would be a self-loop. But usually transitivity is not given (and you would have to consider reachability instead), and most of all, you could not have any cycle in the transition system which means that if a program is modeled, it could not have any loop. So, what I want to say is that transition systems that model systems are typically not representing orders.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/2744/krikpe-structures?show=2745#a2745</guid>
<pubDate>Sun, 03 Jul 2022 09:50:16 +0000</pubDate>
</item>
<item>
<title>Answered: How to calculate the negation of an equation</title>
<link>https://q2a.cs.uni-kl.de/2735/how-to-calculate-the-negation-of-an-equation?show=2736#a2736</link>
<description>Best way to solve this is to first compute the BDD for the given formula Phi. The BDD of its negation is obtained from that BDD by switching the leaf nodes.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/2735/how-to-calculate-the-negation-of-an-equation?show=2736#a2736</guid>
<pubDate>Thu, 30 Jun 2022 08:04:50 +0000</pubDate>
</item>
<item>
<title>Answered: Exists algorithm</title>
<link>https://q2a.cs.uni-kl.de/2733/exists-algorithm?show=2734#a2734</link>
<description>&lt;p&gt;Your question does not make sense. {c,d} is a set of variables, and we can only compute ROBDDs for propositional formulas. The task is to compute the existential quantification over the variables c,d on the formula&amp;nbsp;&lt;span style=&quot;background-color:#fcfdfd; caret-color:#222222; color:#222222; font-family:&amp;quot;Lucida Grande&amp;quot;,&amp;quot;Lucida Sans&amp;quot;,Arial,sans-serif; font-size:13.199999809265137px&quot;&gt;¬ϕ.&amp;nbsp;&lt;/span&gt;With the variable ordering given, this is straightforward, since the variables c,d appear topmost. Thus, we just have to compute the BDD for&amp;nbsp;&lt;span style=&quot;background-color:#fcfdfd; caret-color:#222222; color:#222222; font-family:&amp;quot;Lucida Grande&amp;quot;,&amp;quot;Lucida Sans&amp;quot;,Arial,sans-serif; font-size:13.199999809265137px&quot;&gt;¬ϕ&amp;nbsp;&lt;/span&gt;and then make a cut between variables {c,d} and {a,b} which gives us some (at most four) BDDs on variables &amp;nbsp;{a,b}. We then have to compute the disjunction of these BDDs.&lt;/p&gt;&lt;p&gt;The BDD is as follows:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://q2a.cs.uni-kl.de/?qa=blob&amp;amp;qa_blobid=11701642577784893836&quot; style=&quot;height:400px; width:300px&quot;&gt;&lt;/p&gt;&lt;p&gt;The cut mentioned above yields the three formulas&amp;nbsp;false, a, a&amp;lt;-&amp;gt;b so that the result would be the disjunction of these formulas. The Shannon normal form would then by (b?a:1).&amp;nbsp;&lt;/p&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/2733/exists-algorithm?show=2734#a2734</guid>
<pubDate>Tue, 28 Jun 2022 08:09:25 +0000</pubDate>
</item>
<item>
<title>Answered: Tips needed to solve this question</title>
<link>https://q2a.cs.uni-kl.de/2705/tips-needed-to-solve-this-question?show=2706#a2706</link>
<description>Well, I think the task is pretty clear, isn't it? You have to check whether the given formulas are equivalent or not. That can be done in many ways as discussed in the lecture, either by making truth tables for both formulas, using sequent calculus, transforming one formula to the other by means of Boolean algebra or converting both formulas to a canonical normal form to compare. Anyone of these methods can prove the equivalence or disprove it. In case the formulas are not equivalent, there is a counterexample, i.e., a model that satisfies one of the formulas, but not the other one. That model can be written down as an assignment to variables or as a cube as mentioned in the exercise text.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/2705/tips-needed-to-solve-this-question?show=2706#a2706</guid>
<pubDate>Fri, 17 Jun 2022 11:53:37 +0000</pubDate>
</item>
<item>
<title>Answered: Regarding Sequent Calculus- why is the last leaf node wrong</title>
<link>https://q2a.cs.uni-kl.de/2701/regarding-sequent-calculus-why-is-the-last-leaf-node-wrong?show=2702#a2702</link>
<description>&lt;p&gt;You need to understand the meaning of sequents: The semantics of a sequent {g1,...,gm} |- {d1,...,dn} is the semantics of the formula g1 &amp;amp; ... &amp;amp; gm -&amp;gt; d1 | ... | dn. Recall also the special cases of an empty conjunction, which is true and an empty disjunction which is false. Hence, {} |- {d1,...,dn} means true -&amp;gt; d1 | ... | dn, i.e., d1 | ... | dn, and {g1,...,gm} |- {} means g1 &amp;amp; ... &amp;amp; gm -&amp;gt; false, i.e., !(g1 &amp;amp; ... &amp;amp; gm).&lt;/p&gt;&lt;p&gt;The rules of the sequent calculus just perform equivalent transformations such that the root sequent of a proof tree is equivalent to the conjunction of the leaf sequents.&lt;/p&gt;&lt;p&gt;So, if you construct a proof tree for {} |- {(c-&amp;gt;b)-&amp;gt;a}, you are transforming the formula (c-&amp;gt;b)-&amp;gt;a itself, and when you get the leaf sequents {}|-{a,c} and {b}|-{a} it means that &amp;nbsp;(c-&amp;gt;b)-&amp;gt;a is equivalent to (a|c) &amp;amp; (!b|a).&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you construct a proof tree for {(c-&amp;gt;b)-&amp;gt;a} |- {}, you are transforming the formula !((c-&amp;gt;b)-&amp;gt;a), and when you get the leaf sequents {c}|-{b} and {a}|-{} it means that !((c-&amp;gt;b)-&amp;gt;a) is equivalent to (!c|b) &amp;amp; (!a).&lt;/p&gt;&lt;p&gt;The two proof trees are as follows (you mixed them up!):&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://q2a.cs.uni-kl.de/?qa=blob&amp;amp;qa_blobid=7225221363441630466&quot; style=&quot;height:281px; width:250px&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://q2a.cs.uni-kl.de/?qa=blob&amp;amp;qa_blobid=7079649789795240967&quot; style=&quot;height:335px; width:250px&quot;&gt;&lt;/p&gt;&lt;p&gt;Moreover, a root sequent is valid if and only if all leaf sequents are valid. In other words, it is not valid if one of its leaf sequents is not valid, and the counterexample of that leaf sequent is then also a counterexample to the root sequent.&lt;/p&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/2701/regarding-sequent-calculus-why-is-the-last-leaf-node-wrong?show=2702#a2702</guid>
<pubDate>Wed, 15 Jun 2022 13:40:07 +0000</pubDate>
</item>
<item>
<title>Answered: The time of exam Processor Architecture</title>
<link>https://q2a.cs.uni-kl.de/2570/the-time-of-exam-processor-architecture?show=2571#a2571</link>
<description>There is no written exam, and the oral exams will be arranged on an individual basis. So, there is no fixed date at the moment.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/2570/the-time-of-exam-processor-architecture?show=2571#a2571</guid>
<pubDate>Thu, 02 Dec 2021 15:05:48 +0000</pubDate>
</item>
<item>
<title>Answered: Sheet 9, Task 3 c) / SLR(1)</title>
<link>https://q2a.cs.uni-kl.de/2306/sheet-9-task-3-c-slr-1?show=2309#a2309</link>
<description>&lt;p&gt;Well, for the grammar&lt;/p&gt;&lt;pre&gt;A -&amp;gt; a | BA
B -&amp;gt; a | bB
&lt;/pre&gt;&lt;p&gt;we obtain&amp;nbsp;&lt;/p&gt;&lt;pre&gt;    First(A) = {a,b}
    First(B) = {a,b}
&lt;/pre&gt;&lt;p&gt;and&amp;nbsp;&lt;/p&gt;&lt;pre&gt;    Follow(A) = {$}
    Follow(B) = {a,b}
&lt;/pre&gt;&lt;p&gt;The parse table for a top-down parser would therefore not have unique decisions since the grammar is not LL(1). The LR(0) automaton is as follows:&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://q2a.cs.uni-kl.de/?qa=blob&amp;amp;qa_blobid=13826054698153238390&quot; style=&quot;height:401px; width:550px&quot;&gt;&lt;/p&gt;&lt;p&gt;The action table for a LR(0) parser is now determined by the following rules (see slide 178):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;if q_i contains A → α.aβ with a ∈ T, and q_i′ is the state reached in the automaton from q_i reading a, then shift a on the stack and put q_i′ above&lt;/li&gt;&lt;li&gt;if q_i contains S′ → S. and the input is ε, accept&lt;/li&gt;&lt;li&gt;if q_i contains B → γ., then reduce with rule B → γ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This yields the following action table:&lt;/p&gt;&lt;table cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:63.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;state&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;a&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;b&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;$&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:44.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;A&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:45.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;B&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:29.8px; vertical-align:middle; width:63.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;q0&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;S(3)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;S(4)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:44.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;G(1)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:45.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;G(2)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:30.8px; vertical-align:middle; width:63.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;q1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;A&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:44.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:45.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:29.8px; vertical-align:middle; width:63.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;q2&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;S(3)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;S(4)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:44.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;G(5)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:45.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;G(2)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:30.8px; vertical-align:middle; width:63.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;q3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;R(B-&amp;gt;a)&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;R(B-&amp;gt;a)&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;R(A-&amp;gt;a)&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:44.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:45.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:29.8px; vertical-align:middle; width:63.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;q4&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;S(7)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;S(4)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:44.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:45.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;G(6)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:30.8px; vertical-align:middle; width:63.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;q5&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;R(A-&amp;gt;BA)&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:44.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:45.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:29.8px; vertical-align:middle; width:63.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;q6&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;R(B-&amp;gt;bB)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;R(B-&amp;gt;bB)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:44.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color:#eaeaea; border-color:#000000 #000000 #000000 #000000; height:15.8px; vertical-align:middle; width:45.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;background-color:#dee2e6; border-color:#000000 #000000 #000000 #000000; height:30.8px; vertical-align:middle; width:63.8px&quot;&gt;&lt;p&gt;&lt;span style=&quot;background-color:#ffffff&quot;&gt;q7&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;R(B-&amp;gt;a)&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;R(B-&amp;gt;a)&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:74.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:44.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-color:#000000 #000000 #000000 #000000; height:16.8px; vertical-align:middle; width:45.8px&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;For instance, in state q0, we have the rule A -&amp;gt;.a which leads to a shift action for a that leads to the new state q3, and we we have the rule B&amp;nbsp;-&amp;gt; .bB that leads to the shift action for b that leads to state q4. There is a reduce/reduce conflict in state 3 since we could reduce with A-&amp;gt; a. and also with B-&amp;gt;a. as well. &amp;nbsp;&lt;/p&gt;&lt;p&gt;Therefore, the grammar is not a LR(0) grammar and we need to construct the SLR(1) action table. &amp;nbsp;Here the third rule above becomes&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family:Menlo; font-size:10pt&quot;&gt;if q_i contains B&amp;nbsp;→ γ&lt;/span&gt;&lt;span style=&quot;font-family:Menlo; font-size:10pt&quot;&gt;., then reduce with rule B&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family:Menlo; font-size:10pt&quot;&gt;→ γ&amp;nbsp;provided that the next&amp;nbsp;input token is in FOLLOW(B)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;and this resolves the reduce/reduce conflict.&amp;nbsp;&lt;/p&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/2306/sheet-9-task-3-c-slr-1?show=2309#a2309</guid>
<pubDate>Mon, 29 Mar 2021 14:18:41 +0000</pubDate>
</item>
<item>
<title>Answered: 2017 exam 4d)</title>
<link>https://q2a.cs.uni-kl.de/2300/2017-exam-4d?show=2301#a2301</link>
<description>I think in the last Fragestunde he says it is enough, if you do a graph. But only if its asked for a Ableirungsbaum. In the exam it can be asked with the top down table.&lt;br /&gt;
&lt;br /&gt;
In the Musterlösung it was only for our understanding.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/2300/2017-exam-4d?show=2301#a2301</guid>
<pubDate>Sun, 28 Mar 2021 23:18:43 +0000</pubDate>
</item>
<item>
<title>Answered: 2017 exam ex. 1/pipelining</title>
<link>https://q2a.cs.uni-kl.de/2250/2017-exam-ex-1-pipelining?show=2251#a2251</link>
<description>&lt;p&gt;The standard processor without conflict resolution (not without conflicts as you wrote) has no forwarding logic, but makes use of register bypassing. With the standard five stage pipeline, we get the following&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp; &amp;nbsp; after ALU: &amp;nbsp; &amp;nbsp;pWB − pID − 1 = 5 - 2 - 1 = 2&lt;/li&gt;&lt;li&gt;&amp;nbsp; &amp;nbsp; after LOAD: &amp;nbsp; pWB − pID − 1 = 5 - 2 - 1 = 2&lt;/li&gt;&lt;li&gt;&amp;nbsp; &amp;nbsp; after BRANCH: pWB − pIF − 1 = 5 - 1 - 1 = 3&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;and with forwarding, we get&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp; &amp;nbsp; after ALU: &amp;nbsp; &amp;nbsp;pEX − pID − 1 = 3 - 2 - 1 = 0&lt;/li&gt;&lt;li&gt;&amp;nbsp; &amp;nbsp; after LOAD: &amp;nbsp; pMA − pID − 1 = 4 - 2 - 1 = 1&lt;/li&gt;&lt;li&gt;&amp;nbsp; &amp;nbsp; after BRANCH: pEX − pIF − 1 = 3 - 1 - 1 = 1&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;So, your calculations are correct. The program with nop instructions inserted you have doubts about is as follows:&lt;/p&gt;&lt;pre&gt;    00: mov $0,0
        nop,nop
    01: addi $1,$0,5
        nop,nop
    02 wh: ldi $2,$1,10
    03: subi $1,$1,1
        nop,nop
    04: ldi $3,$1,10
        nop,nop
    05: add $3,$3,$2
        nop,nop
    06: sti $3,$1,10
    07: bez $1,ex
        nop,nop,nop
    08: j wh
        nop,nop,nop
    09 ex: ldi $7,$1,10
&lt;/pre&gt;&lt;p&gt;There are no nops between instructions 2 and 3 since there is no conflict that we have to resolve. Note that the above number of stalls/nops that we calculated are only necessary if there is a conflict between instructions that follow each other. Note further that it may also be sufficient to add only one nop after a load even without forwarding, e.g. in case of the following program&lt;/p&gt;&lt;pre&gt;    ldi $0,$1,0
    addi $2,$2,1
    addi $2,$0,1&lt;/pre&gt;&lt;p&gt;which results in&lt;/p&gt;&lt;pre&gt;    ldi $0,$1,0
    addi $2,$2,1
    nop
    addi $2,$0,1&lt;/pre&gt;&lt;p&gt;We just have to make sure that the distance between a read operation that follows for example a load operation is at least 2 in the above case, and have to add nop operations to increase the distance if needed. It does not mean that we always have to add the two nop operations after every load operation. It does mean however that we never have to add more than the two nop operations.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/2250/2017-exam-ex-1-pipelining?show=2251#a2251</guid>
<pubDate>Fri, 26 Mar 2021 09:46:34 +0000</pubDate>
</item>
<item>
<title>Answered: Constrain/Restrict Algorithms</title>
<link>https://q2a.cs.uni-kl.de/1808/constrain-restrict-algorithms?show=1811#a1811</link>
<description>Not really; I mean the algorithms are quite involved, there is no real short idea you can remember instead. If you consider slides 106 and 107, you see the different cases, and each one can be explained. For constrain, it is not soo difficult, since you either forward the recursive call or just use one of the recursive calls on case the other cofactor is the 0-leaf.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/1808/constrain-restrict-algorithms?show=1811#a1811</guid>
<pubDate>Sun, 23 Aug 2020 08:03:25 +0000</pubDate>
</item>
<item>
<title>Answered: Frage zur Klausur in Projektmanagement</title>
<link>https://q2a.cs.uni-kl.de/312/frage-zur-klausur-in-projektmanagement?show=313#a313</link>
<description>&lt;p&gt;Im reformierten Informatikstudiengang ist laut geltender Prüfungsordnung im Pflichtmodul INF-02-16-V-2 &lt;strong&gt;keine &lt;/strong&gt;Prüfung vorgesehen. Das Modul wird abgeschlossen durch erfolgreiche Teilnahme an den Übungen (in Form einer Studienleistung).&lt;/p&gt;&lt;p&gt;Nach Rücksprache mit dem Prüfungsamt: &lt;strong&gt;bitte melden Sie sich im QIS nicht von der Prüfung 60216 ab&lt;/strong&gt;. Im System ist zwar weiterhin der Klausurtermin eingetragen, dieser hat jedoch keine Relevanz für Studierende im reformierten Informatikstudiengang. Im QIS wird dann lediglich die erfolgreiche Teilnahme an der Übung eingetragen (ohne Note).&lt;/p&gt;&lt;p&gt;&lt;strong&gt;WICHTIG&lt;/strong&gt;: Studierende, die bereits vor dem WS 2018/19 eingeschrieben waren und nicht in den reformierten Studiengang gewechselt haben, müssen laut der für sie geltenden alten Prüfungsordnung im Modul INF-00-16-V-2 zusätzlich erfolgreich an der Klausur teilnehmen (Studienleistung + Prüfungsleistung).&lt;/p&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/312/frage-zur-klausur-in-projektmanagement?show=313#a313</guid>
<pubDate>Wed, 16 Jan 2019 20:39:56 +0000</pubDate>
</item>
<item>
<title>Answered: Wann/Wo besteht die Möglichkeit in die Probeklausur (GdP) einzusehen?</title>
<link>https://q2a.cs.uni-kl.de/310/wann-besteht-die-m%C3%B6glichkeit-die-probeklausur-einzusehen?show=311#a311</link>
<description>Hallo,&lt;br /&gt;
&lt;br /&gt;
wir haben die Probeklausur ja noch korrigieren müssen, das dauert leider ein wenig. Nun sind wir fertig, die Ergebnisse stehen im STATS und die Klausur wird in der nächsten Übung (diese oder nächste Woche) zurück gegeben. &amp;nbsp;Sie dürfen Ihre Klausur dann behalten, daher gibt es keine Einsichtnahme wie bei Abschlussklausuren.&lt;br /&gt;
&lt;br /&gt;
Viele Grüße&lt;br /&gt;
Sebastian Schweizer</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/310/wann-besteht-die-m%C3%B6glichkeit-die-probeklausur-einzusehen?show=311#a311</guid>
<pubDate>Thu, 10 Jan 2019 13:41:14 +0000</pubDate>
</item>
<item>
<title>Answered: Wechsel zur neuen PO ab WS 18/19</title>
<link>https://q2a.cs.uni-kl.de/248/wechsel-zur-neuen-po-ab-ws-18-19?show=249#a249</link>
<description>&lt;p&gt;Die Module des neuen Curriculums werden erst nach dem Bedarf angeboten, der sich für die Studienanfänger im WS18/19 ergibt. Auf diese Weise werden die Module sukzessive in das neue Curriculum überführt und die Studierenden des bisherigen Curriculums können noch nach Plan weiter studieren.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Studierende, die zum WS18/10 in höhere Semester in das neue Curriculum wechseln, müssen äquivalente Module hören, falls die laut Curriculum eigentlich geforderten Module noch nicht angeboten werden. Nach denselben Regeln werden bereits erbrachte Module aus dem bisherigen Curriculum übertragen. Diese &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.informatik.uni-kl.de/organisation/ausschuesse/fbr/protokolle/201803/Anlage_09_Uebergangsregelungen.pdf&quot;&gt;Äquivalenz- und Übergangsregeln&lt;/a&gt; hat der Fachbereichsrat hat auf seiner Sitzung vom 30. Mai 2018 beschlossen.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dort wird u.a. festgelegt, dass &quot;Software-Entwicklung 3&quot; als äquivalent zum neuen Modul &quot;Verteilte und nebenläufige Programmierung&quot; gilt. Der zusätzliche ECTS-Punkt von &quot;Software-Entwicklung 3&quot; wird dabei von dem&amp;nbsp;Ergänzungsblock abgezogen. Rechnersysteme 2 gilt zu der künftigen &quot;Rechnerorganisation und Systemsoftware&quot; als äquivalent, hat aber 2 LP weniger, die dann dem Ergänzungsblock zugeordnet werden. Macht man SE3 und RS2 zusammen, wird ein Punkt für die Ergänzung frei.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/248/wechsel-zur-neuen-po-ab-ws-18-19?show=249#a249</guid>
<pubDate>Tue, 28 Aug 2018 18:44:00 +0000</pubDate>
</item>
<item>
<title>Answered: Inwiefern werden HM Leistungen bei einem Wechsel anerkannt?</title>
<link>https://q2a.cs.uni-kl.de/20/inwiefern-werden-hm-leistungen-bei-einem-wechsel-anerkannt?show=29#a29</link>
<description>Anerkennungen sind immer Einzelfallentscheidungen, da die Situation meist individuell ist.&lt;br /&gt;
&lt;br /&gt;
Grundsätzlich gilt: HM und MfI sind inhaltlich vergleichbar (zumindest Analysis und Algebra). Sie unterscheiden sich aber in ihrer Ausrichtung. Während die HM mehr anwendungsorientiert ist, ist die MfI mehr beweisorientiert. Um des Aspekt des Beweisens abzudecken, muss mindestens ein Modul der MfI-Reihe bestanden werden. Dies wird wohl meist das neue Statistik-Modul sein, da die Statistik auch inhaltlich nicht durch HM1/2 abgedeckt ist. HM1/2 würde dann auf die Algebra und Analysis angerechnet werden.&lt;br /&gt;
&lt;br /&gt;
Dies aber nur als Richtschnur. Entscheidend ist der Einzelfall, der ggf. in einer Studienberatung geklärt werden müsste.</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/20/inwiefern-werden-hm-leistungen-bei-einem-wechsel-anerkannt?show=29#a29</guid>
<pubDate>Tue, 07 Aug 2018 15:06:30 +0000</pubDate>
</item>
<item>
<title>Answered: Ist ein Wechsel zu Bachelor Informatik zum nächsten Semester ein Wechsel in den alten Informatik-Studiengang?</title>
<link>https://q2a.cs.uni-kl.de/9/bachelor-informatik-n%C3%A4chsten-semester-informatik-studiengang?show=11#a11</link>
<description>&lt;p&gt;Die neue Prüfungsordnung ist zwar beschlossen, tritt aber erst nach deren Veröffentlichung im &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.uni-kl.de/universitaet/verwaltung/ha-1/informationen-und-downloads/verkuendungsblatt/&quot;&gt;Verkündungsblatt&lt;/a&gt; (vermutlich im August) in Kraft. Erst dann macht ein Wechsel Sinn, da vorher noch keine&amp;nbsp;Prüfungen abgelegt werden können.&lt;/p&gt;&lt;p&gt;Auf Seite 16 der Präsentationsfolien&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://www.cs.uni-kl.de/studium/studierende/reform18/Reform_Informatik-Bachelor.pdf&quot;&gt;https://www.cs.uni-kl.de/studium/studierende/reform18/Reform_Informatik-Bachelor.pdf&lt;/a&gt; wird als&amp;nbsp;Frist für die Beantragung des Wechsels im Prüfungsamt der 16.November genannt. Ich nehme an, dass dies als Frist für das Wintersemester gilt, um die Prüfungen im WS bereits nach der neuen PO machen zu können. Denn auch später sollte noch ein Wechsel möglich ein (empfehlenswert ist aber dies so früh wie möglich&amp;nbsp;zu machen).&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Fazit: Ein Wechsel sollte ab Veröffentlichung im Verkündungsblatt bis 16. November beantragt werden.&lt;/p&gt;</description>
<category># Study-Organisation (Bachelor)</category>
<guid isPermaLink="true">https://q2a.cs.uni-kl.de/9/bachelor-informatik-n%C3%A4chsten-semester-informatik-studiengang?show=11#a11</guid>
<pubDate>Tue, 17 Jul 2018 19:40:25 +0000</pubDate>
</item>
</channel>
</rss>