Konferenzseminar-ML-PAL/PAL Example Expanded.drawio

47 lines
11 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<mxfile host="Electron" modified="2023-11-18T01:35:24.082Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/21.7.5 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36" etag="PcebU23DO2oPR1TpSGAX" version="21.7.5" type="device">
<diagram name="Seite-1" id="3Sw_KYT27iZ8JMehEK1P">
<mxGraphModel dx="1247" dy="734" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-1" value="Q: Roger has 5 tennis balls. He buys 2 more cans of&lt;br&gt;tennis balls. Each can has 3 tennis balls. How many&lt;br&gt;tennis balls does he have now?&lt;br&gt;&lt;br&gt;A: Roger started with 5 tennis balls. 2 cans of 3 tennis&lt;br&gt;balls each is 6 tennis balls. 5 + 6 = 11. The answer is 11.&lt;br&gt;&lt;br&gt;Q: The bakers at the Beverly Hills Bakery baked 200&lt;br&gt;loaves of bread on Monday morning. They sold 93 loaves&lt;br&gt;in the morning and 39 loaves in the afternoon. A grocery&lt;br&gt;store returned 6 unsold loaves. How many loaves of&lt;br&gt;bread did they have left?" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="20" y="290" width="250" height="350" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-2" value="Eingabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="50" y="280" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-8" value="&lt;div&gt;Q: Roger has 5 tennis balls. He buys 2 more cans of&lt;/div&gt;&lt;div&gt;tennis balls. Each can has 3 tennis balls. How many&lt;/div&gt;&lt;div&gt;tennis balls does he have now?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;A: &lt;font face=&quot;Times New Roman&quot;&gt;#&amp;nbsp;&lt;span style=&quot;background-color: initial;&quot;&gt;Roger started with 5 tennis balls.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot;&gt;tennis_balls = 5&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot;&gt;# 2 cans of 3 tennis balls each is&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot;&gt;bought_balls = 2 * 3&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot;&gt;# tennis balls. The answer is&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot;&gt;answer = tennis_balls + bought_balls&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Q: The bakers at the Beverly Hills Bakery baked 200&lt;/div&gt;&lt;div&gt;loaves of bread on Monday morning. They sold 93 loaves&lt;/div&gt;&lt;div&gt;in the morning and 39 loaves in the afternoon. A grocery&lt;/div&gt;&lt;div&gt;store returned 6 unsold loaves. How many loaves of bread&lt;/div&gt;&lt;div&gt;did they have left?&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="289" y="290" width="250" height="350" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-9" value="Eingabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="330" y="280" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-10" value="Q: The bakers at the Beverly Hills Bakery baked 200&lt;br&gt;loaves of bread on Monday morning. They sold 93 loaves&lt;br&gt;in the morning and 39 loaves in the afternoon. A grocery&lt;br&gt;store returned 6 unsold loaves. How many loaves of&lt;br&gt;bread did they have left?" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="560" y="289" width="250" height="350" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-11" value="Eingabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="600" y="280" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-12" value="A: The bakers started with 200 loaves. They sold 93 in&#xa;the morning and 39 in the afternoon. So they sold 93 +&#xa;39 = 132 loaves. The grocery store returned 6 loaves. So&#xa;they had 200 - 132 - 6 = 62 loaves left.&#xa;The answer is 62." style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="20" y="665" width="250" height="345" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-13" value="&lt;div style=&quot;font-size: 12px;&quot;&gt;A:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;# The bakers started with 200 loaves&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;loaves_baked = 200&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;# They sold 93 in the morning and 39 in the afternoon&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;loaves_sold_morning = 93&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;loaves_sold_afternoon = 39&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;# The grocery store returned 6 loaves.&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;loaves_returned = 6&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;# The answer is&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;answer = loaves_baked - loaves_sold_morning&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;- loaves_sold_afternoon + loaves_returned&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 12px;&quot;&gt;print(answer) # -&amp;gt; 74&lt;/div&gt;&lt;br&gt;&lt;br&gt;When the script is executed 74 is printed." style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="289" y="665" width="250" height="340" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-18" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;&lt;div&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;A: The Beverly Hills Bakery had 74 loaves of bread left after their sales and the return of unsold loaves. &lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 11px;&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;Analysis:&lt;br&gt;&lt;/font&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;# Number of loaves baked&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;loaves_baked = 200&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;# Number of loaves sold in the morning and afternoon&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;loaves_sold_morning = 93&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;loaves_sold_afternoon = 39&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;# Number of loaves returned from the grocery store&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;loaves_returned = 6&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;# Calculating the remaining loaves&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;remaining_loaves = loaves_baked - (loaves_sold_morning + loaves_sold_afternoon) + loaves_returned&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Times New Roman&quot; style=&quot;font-size: 11px;&quot;&gt;remaining_loaves&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 11px;&quot;&gt;&lt;font style=&quot;font-size: 11px;&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 11px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;flex justify-between empty:hidden gizmo:mt-1 gizmo:justify-start gizmo:gap-3 lg:block gizmo:lg:flex&quot;&gt;&lt;div class=&quot;text-gray-400 flex self-end lg:self-center justify-center gizmo:lg:justify-start mt-2 gizmo:mt-0 visible gap-1&quot;&gt;&lt;/div&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="560" y="665" width="250" height="340" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-20" value="Ausgabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1">
<mxGeometry x="50" y="655" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-21" value="Ausgabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1">
<mxGeometry x="330" y="655" width="50" height="20" as="geometry" />
</mxCell>
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-22" value="Ausgabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1">
<mxGeometry x="600" y="655" width="50" height="20" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>