Sfoglia il codice sorgente

Merge branch 'master' of ssh://5.135.184.4:10022/nimayer/polimd

Federico Amedeo Izzo 9 anni fa
parent
commit
8f550a6188

+ 3 - 2
Artificial Intelligence/lesson_01.md

@@ -23,8 +23,9 @@ Create machines or entities who can act as humans.
 Alan Turing in 1950 defined the imitation game, later being known as the turing test.
 ```
 #### The __original formulation__ is the following
-Man|Interrogator|Human
----|---|---
+|Man|Interrogator|Human|
+|---|---|---|
+
 The interrogator can interact with the two subject using a typewriter
 The goal of the man is to try to let the interrogator think he is a woman.
 The role of the woman is to try to let the interrogator know she is really a woman.

+ 7 - 4
Artificial Intelligence/lesson_02.md

@@ -31,6 +31,7 @@ An __agent program__ is a *computational model* of the agent function.
 
 A|B
 -|-
+
  __Perception__
 
 $P=\{[A,\text{dirty}],[A,\text{clean}],[B,\text{dirty}],[B,\text{clean}]\}$
@@ -99,11 +100,13 @@ Now we should move to the agent program.
 for example ROOMBA
 
 __agent__
-||||||
+
+|||||
 |---|---|---|---|---|
-|||What the world look like|$\leftarrow$||
-|||$\downarrow$||environment
-|Action reuse|$\rightarrow$|What actually should i do|$\rightarrow$||
+|||What the world look like|$\leftarrow$|
+|||$\downarrow$|environment|
+|Action reuse|$\rightarrow$|What actually should i||
+|||do|$\rightarrow$|
 
 This model performs well when the environment is *fully observable*.
 

+ 18 - 15
Artificial Intelligence/lesson_03.md

@@ -29,11 +29,12 @@ The problem can be formulated defining the following five elements:
 1. The __initial state__: a description of the initial situation of the problem
 2. __Actions__ (s) = {actions that are applicable is s} Return the legal moves from the state s.
 
- The state s<sub>0</sub> is
- 7|2|3
- ---|---|---
- 1|4|8
-6|5|
+The state s<sub>0</sub> is
+
+|7|2|3|
+|---|---|---|
+|1|4|8|
+|6|5|4|
 
 Actions(s<sub>0</sub>)={$\leftarrow,\uparrow$}
 3. __Result__ (s,a) = s' have the chosen move as argument and returns the new state.  
@@ -71,16 +72,18 @@ The __optimal solution__ is the solution with *minimum* path cost.
 Our model is limited to the relevant aspects of the problem, for example it doesn't comprehend the color of the tiles in the 8 puzzle.
 
 ### The 8 queens problem  
--|1|2|3|4|5|6|7|8
----|---|---|---|---|---|---|---|---
-1|Q
-2|
-3|
-4|||||||Q
-5|
-6|
-7|
-8|
+
+|-|1|2|3|4|5|6|7|8|
+|---|---|---|---|---|---|---|---|---|
+|1|Q||||||||
+|2|||||||||
+|3|||||||||
+|4|||||||Q||
+|5||||||||||
+|6||||||||||
+|7||||||||||
+|8||||||||||
+
 We have to place the 8 queens so that no two queens are in the same row, column or diagonal.
 #### first problem formulation:
 1. initial state:   empty board

+ 4 - 0
Formal Languages and Compilers/lesson_01.md

@@ -28,9 +28,12 @@ There is an effective procedure to verify the grammatical *correctness* of a phr
 ##### Years '70-'80
 - Formal language theory becomes a standard university discipline
 - Introduction of SDKs like Flex or Bison
+
 ---
+
 ## Formal Languages, Basic Notions
 ### Definition of a language
+
 - __Alphabet__: finite set of elements
 - __String__: Ordered set of atomic elements, possibly repeated
 - __Language__: Finite or infinite set of __strings__
@@ -42,6 +45,7 @@ The __cardinality__ of a *language* determines the number of elements contained,
 It can be 0 for the __empty language__ or *infinite* for __infinite languages__.
 
 ---
+
 ### Operations on strings
 
 #### Lenght of a string

+ 7 - 0
Formal Languages and Compilers/lesson_02.md

@@ -5,6 +5,7 @@
 ## Operations on languages
 An operation defined on a language, applies to (and is definable over) each string in the language.
 $$L^R=\{|x=y^R\wedge y\in L\}$$
+
 #### Prefix-free language
 $$\text{prefix}(L)=\{y|x=yz\wedge x\in L\wedge y,z\neq\varepsilon\}$$
 In the language there is not any string that is prefix of another.
@@ -12,8 +13,10 @@ $$\text{prefix(L)} \cap L=\Phi$$
 
 #### Concatenation
 $$L'L''=\{xy|x\in L' \wedge y \in L''\}$$
+
 #### m-th power (m≥0)
 $$L^m=L^{m-1}L,m>0\;\;L^0=\{\varepsilon\}$$
+
 #### Strings of finite length
 The language of the strings that have a length not greater than an integer k
 $$L=\{\varepsilon,a,b\}^3 \;k=3$$
@@ -24,13 +27,16 @@ $$L\{a,b\}\{\varepsilon,a,b\}^2$$
 ---
 ### Set-theoretic Operations
 Are traditional operators of set theory, like __union__ $\cup$, __intersection__ $\cap$, __complement__ $\lnot$, also __strict inclusion__, __inclusion__, __equality__, __inequality__...
+
 #### Universal language
 The set of all strings defined over the alphabet $\Sigma$, also called __free monoid__.
+
 #### Complement of a language
 over the alphabet $\Sigma$ is the set-theoretic difference between the universal language and the given language
 $$\lnot L =L_{universal} \setminus L$$
 >The complement of a finite language is always an infinite language  
 The complement of ain infinite language may be infinite or finite.
+
 #### Set-theoretic difference
 $$L_1\setminus L_2$$
 Is the language containing all the strings of $L_1$ that __are not part__ of $L_2$
@@ -41,6 +47,7 @@ Also called __Kleene star__ or __concatenation closure__.
 Is the union of all powers of a language, for every positive or null exponent.
 $$L^*=\bigcup_{h=0...\infty}L^h=L^0\cup L^1\cup L^2...=\varepsilon\cup L^1\cup L^2...$$
 $$L=\{ab,ba\}\;L^*=\{\varepsilon,ab,ba,abab,abba,baab,baba,...\}$$
+
 #### Properties:
 - monotonic
 - closed w.r.t. Concatenation

+ 9 - 0
Formal Languages and Compilers/lesson_03.md

@@ -12,14 +12,18 @@ Can be defined in different ways:
 
 __Regular Expression__ or *regexp*   
 is a string $r$ defined over the elements of a terminal alphabet $\Sigma$, using one of the following *metasymbols* $\;\cdot\;\cup\;\varnothing\;(\;)$
+
 #### regexp cases:
+
 $r,s,t$ are regexp
 1. $r=\varnothing$
 2. $r=a, \;\;a\in \Sigma$
 3. $r=s\cup t\;\; \text{or}\;\; r=s|t$
 4. $r=s.t\;\; \text{or}\;\; r=st$
 5. $r=s^*$ <!--*-->
+
 #### Precedence of operators
+
 1. star $*$
 2. concatenation $\;\cdot$
 3. union $\cup$ or |
@@ -68,6 +72,7 @@ $$ a_1\cup (b_2b_3)\;\;\;\;\;\;c_4^+\;\;\;\;a_5 \cup (b_6b_7)$$
 $$ a_1\;\;\;\;b_2b_3\;\;\;\;\;\;c_4^\;\;\;\;a_5 \;\;(b_6b_7)$$
 $$ a_1\;\;\;\;b_2\;\;\;b_3\;\;\;\;\;\;c_4^\;\;\;\;a_5 \;\;\;b_6\;\;\;b_7$$
 <!--*-->
+
 ### Different parenthesization
 And hence different interpretations of a regexp
 $$f=(a\cup bb)^*(c^+\cup a\cup bb)$$
@@ -86,6 +91,7 @@ With
 - $\beta$ subexpression of $e'$
 - $\gamma$ subexpression of $e''$
 - $\gamma$ is a *choice* of $\beta$
+
 ##### examples
 - one step derivation
 $$a^*\cup b^+\Rightarrow a^*\;\;\;a^*\cup b^+\Rightarrow b^+$$
@@ -105,6 +111,7 @@ $$(a\cup b)^*a(a\cup b)^* \Rightarrow \varepsilon a(a\cup b)^*\Rightarrow \varep
 <!--*-->
 
 A regexp is __ambiguous__ if the corresponding marked (with numbers on letters) regexp $f_\#$ generates two marked strings $x$ and $y$ such that, removing the indices, we obtain the same string (sufficient condition, not necessary)
+
 ##### examples
 $$(aa|ba)^*a|b(aa|ba)^*\;\; \text{is ambiguous}$$
 in fact the marking
@@ -170,6 +177,7 @@ $$ie(se)^*f\;\;\;i[e(se)^*]f$$
 
 ### Substitution
 Operation that replaces the terminal characters of the source language with the phrases of the destination languages
+
 ##### example
 $$L\subset \Sigma^*\;\;\;L_b\subset\Delta^*$$
 $$x\in L \;\;\;x=a_1a_2...a_n\;\;\text{and for some}\;\;\;a_i=b$$
@@ -178,6 +186,7 @@ $$\{y|y=y_1y_2...y_n\wedge (ifa_i\neq b\;\text{then}\;y_i=a_i\;\text{else}\;y_i\
 
 ### Nested lists (or precedence lists)
 Lists may contain atomic objects as elements, but also other lists of lower level
+
 ##### example
 >livello 1: begin istr1;istr2;...;istrn end  
 livello 2: STAMPA(var1,var2,...,varn)

+ 2 - 1
Formal Languages and Compilers/lesson_05.md

@@ -1,4 +1,4 @@
-# FLC - lesson 04
+# FLC - lesson 05
 ##### Luca Oddone Breveglieri
 ###### 15 october 2015
 ## Grammars pt.II
@@ -16,6 +16,7 @@ There is an algorithm in two phases:
 - Identifying the non-terminal symbold that are unreachable
 
 The resulting grammar can be reduced but is not *guaranteed to be minimal*
+
 #### Phase 1
 Construct the complement set DEF and the defined non-term symbols
 $$DEF=V\setminus UNDEF$$

+ 5 - 5
Software Engineering 2/lesson_01.md

@@ -11,8 +11,8 @@ Software Engineering 1 was focused more on development *in the small*, while thi
 
 ##### Check the course forum through beep
 
-###Introduction
-####Why is Software Engineering important?
+### Introduction
+#### Why is Software Engineering important?
 Software is everywhere in our society, and developing new software as mantaining legacy software (e.g. Cobol software in banks)
 are skills very important in our society.
 
@@ -20,7 +20,7 @@ Software is also important related to the global telecomunication Infrastructure
 
 Also in energy applications, and manufactoring systems software has an important role
 
-#####Software can also be used to address problems like:
+##### Software can also be used to address problems like:
 - Increasing number of elderly people
 - Climate change.
     - Reducing the power consumption of the global network
@@ -30,7 +30,7 @@ Also in energy applications, and manufactoring systems software has an important
 
 Software Engineering is useful to manage the complexity of software-intensive systems and ensure their reliability.
 
-#####Software whe are dealing with are:
+##### Software whe are dealing with are:
 - large and complex
 - built by teams
 - exist in many version
@@ -63,7 +63,7 @@ __Software Engineer__
 - Design a component to be combined with other components
 - Work in teams
 
-####Skills of a software engineer:
+#### Skills of a software engineer:
 - Technical
 - Project Management
 - Cognitive

+ 1 - 1
Software Engineering 2/lesson_02.md

@@ -1,7 +1,7 @@
 # SE2 - lesson 02
 #### Elisabeta di Nitto
 ##### 14 October 2015
-###Software Engineering: a bit of history
+### Software Engineering: a bit of history
 
 With the introduction of first computers, software was built by software engineers for themselves, they were both designer and users, the computers used had very limited storage, memory and computation resources,
 

+ 1 - 1
Software Engineering 2/lesson_04.md

@@ -83,4 +83,4 @@ Nonfunctional requirements are also calles __QoS requirements__
 
 ### Project initiation
 
-An important step is making an __Interview__ with the customers 
+An important step is making an __Interview__ with the customers