This commit is contained in:
Francesco Mecca 2020-05-21 13:57:43 +02:00
parent 0347f90e15
commit 9147d35cea
216 changed files with 10347 additions and 8369573 deletions

291
.gitignore vendored Normal file
View file

@ -0,0 +1,291 @@
dotgit
tesi.tex
.#tesi.tex
1.definizioni.tex
1.tex
2.b.tex
2.tex
2.pn.tex
2.tex
analisi.pn.tex
analisi.tex
tesi_unicode.tex
part4_unicode.tex
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
## Intermediate documents:
*.dvi
*.xdv
*-converted-to.*
# these rules might exclude image files for figures etc.
# *.ps
# *.eps
# *.pdf
## Generated if empty string is given at "Please type another file name for output:"
.pdf
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml
## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex(busy)
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
## Build tool directories for auxiliary files
# latexrun
latex.out/
## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa
# achemso
acs-*.bib
# amsthm
*.thm
# beamer
*.nav
*.pre
*.snm
*.vrb
# changes
*.soc
# comment
*.cut
# cprotect
*.cpt
# elsarticle (documentclass of Elsevier journals)
*.spl
# endnotes
*.ent
# fixme
*.lox
# feynmf/feynmp
*.mf
*.mp
*.t[1-9]
*.t[1-9][0-9]
*.tfm
#(r)(e)ledmac/(r)(e)ledpar
*.end
*.?end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R
# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls
*.glsdefs
*.lzo
*.lzs
# uncomment this for glossaries-extra (will ignore makeindex's style files!)
# *.ist
# gnuplottex
*-gnuplottex-*
# gregoriotex
*.gaux
*.gtex
# htlatex
*.4ct
*.4tc
*.idv
*.lg
*.trc
*.xref
# hyperref
*.brf
# knitr
*-concordance.tex
# TODO Comment the next line if you want to keep your tikz graphics files
*.tikz
*-tikzDictionary
# listings
*.lol
# luatexja-ruby
*.ltjruby
# makeidx
*.idx
*.ilg
*.ind
# minitoc
*.maf
*.mlf
*.mlt
*.mtc[0-9]*
*.slf[0-9]*
*.slt[0-9]*
*.stc[0-9]*
# minted
_minted*
*.pyg
# morewrites
*.mw
# nomencl
*.nlg
*.nlo
*.nls
# pax
*.pax
# pdfpcnotes
*.pdfpc
# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd
# scrwfile
*.wrt
# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/
# pdfcomment
*.upa
*.upb
# pythontex
*.pytxcode
pythontex-files-*/
# tcolorbox
*.listing
# thmtools
*.loe
# TikZ & PGF
*.dpth
*.md5
*.auxlock
# todonotes
*.tdo
# vhistory
*.hst
*.ver
# easy-todo
*.lod
# xcolor
*.xcp
# xmpincl
*.xmpi
# xindy
*.xdy
# xypic precompiled matrices and outlines
*.xyc
*.xyd
# endfloat
*.ttt
*.fff
# Latexian
TSWLatexianTemp*
## Editors:
# WinEdt
*.bak
*.sav
# Texpad
.texpadtmp
# LyX
*.lyx~
# Kile
*.backup
# gummi
.*.swp
# KBibTeX
*~[0-9]*
# TeXnicCenter
*.tps
# auto folder when using emacs and auctex
./auto/*
*.el
# expex forward references with \gathertags
*-tags.tex
# standalone packages
*.sta
# Makeindex log files
*.lpz

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -47,7 +47,7 @@ gli elementi dei due insiemi:
La differenza fra due insiemi e` a sua volta un insieme contenente
tutti gli elementi presenti nell'insieme a sinistra della differenza ma
non non contenuti nell'insieme a destra:
| A\B = {x | x∈A ∧ x∉B}
| A \\ B = {x | x∈A ∧ x∉B}
** Insieme Potenza
@ -234,12 +234,12 @@ Una matrice e` un vettore bidimensionale di numeri o altri oggetti.
La dimensione n×m e` data dal numero di righe /n/ e il numero di colonne /m/.
\begin{equation*}
\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,m}
a_{2,1} & a_{2,2} & \cdots & a_{2,m}
\vdots & \vdots & \ddots & \vdots
a_{n,1} & a_{n,2} & \cdots & p_{n,m}
a_{1,1} & a_{1,2} & \cdots & a_{1,m} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,m} \\
\vdots & \vdots & \ddots & \vdots \\
a_{n,1} & a_{n,2} & \cdots & p_{n,m} \\
\end{pmatrix}
= (a_{ij})∈R^{m×n}
= (a_{ij})\in{R^{m\times{n}}}
\end{equation*}
** Somma
@ -252,7 +252,7 @@ come:
Definiamo il prodotto fra una matrice A di dimensione |nₐ×mₐ| e una
matrice B di dimensione |n_{b}×m_{b}| quando mₐ=n_{b} come:
| AB_{ij} = ∑_{r=1}^{n} a_{ir}b_{rj}
Dato un vettore \vec{v} possiamo calcolare il prodotto di vettore per
Dato un vettore $\vec{v}$ possiamo calcolare il prodotto di vettore per
matrice considerando il vettore una matrice colonna e applicando lo
stessa definizione del prodotto fra matrici (quindi la lunghezza di
\vec{x} dovra` essere pari al numero di colonne della matrice).
$\vec{x}$ dovra` essere pari al numero di colonne della matrice).

BIN
anno3/vpc/consegne/1/1.pdf Normal file

Binary file not shown.

View file

@ -0,0 +1,19 @@
SRC = 1.tex
AUX = 1.aux
DEL = 1.aux 1.bbl 1.blg 1.log 1.out 1_unicode.tex 1.pdf 1.tex texput.log 1.definizioni.aux 1.definizioni.out 1.toc 1.definizioni.log 1.definizioni.tex 1.definizioni.toc 1.tex 1.definizioni.tex
NAME = definizioni
tesi:
@echo
@echo "=== Removing temporary files ==="
rm -f $(DEL)
@echo
@echo "=== Building from scratch ==="
emacs -batch 1.definizioni.org -f org-latex-export-to-latex --kill
python3 ../conv/conv.py 1.definizioni.tex 1.tex
pdflatex $(SRC)
@echo
@echo "=== All done. Generated $(NAME).pdf ==="
clean:
rm -f $(DEL)

Binary file not shown.

View file

@ -0,0 +1,19 @@
SRC = 2.tex
AUX = 2.aux
DEL = 2.aux 2.bbl 2.blg 2.log 2.out 2_unicode.tex 2.pdf 2.tex texput.log 2.b.aux 2.b.out 2.toc 2.b.log 2.b.tex 2.b.toc 2.tex 2.b.tex
NAME = b
tesi:
@echo
@echo "=== Removing temporary files ==="
rm -f $(DEL)
@echo
@echo "=== Building from scratch ==="
emacs -batch 2.b.org -f org-latex-export-to-latex --kill
python3 ../conv/conv.py 2.b.tex 2.tex
pdflatex $(SRC)
@echo
@echo "=== All done. Generated $(NAME).pdf ==="
clean:
rm -f $(DEL)

BIN
anno3/vpc/consegne/2/2.pdf Normal file

Binary file not shown.

View file

@ -43,8 +43,6 @@ stesso padre quando la marcatura degli slave e` maggiore di 2.
Si puo` garantire che avvenga il join di due processi forkati dallo
stesso padre nei seguenti modi:
- attraverso differenti strutture slaves
- permettendo l'elaborazione di una singola richiesta alla volta
(modellato con degli archi inibitori)
- usando reti WN
@ -61,11 +59,11 @@ analisi; in ordine sono stati applicati:
- eliminazione di alcune transizioni
- riduzione di self loop
[[./riduzioni/fusione1.jpg]]
[[./riduzioni/fusione2.jpg]]
[[./riduzioni/eliminazione1.jpg]]
[[./riduzioni/eliminazione2.jpg]]
[[./riduzioni/rimozione1.jpg]]
[[./riduzione/fusione1.jpg]]
[[./riduzione/fusione2.jpg]]
[[./riduzione/eliminazione1.jpg]]
# [[./riduzione/eliminazione2.jpg]]
[[./riduzione/rimozione1.jpg]]
** TODO P e T invarianti
Tramite GreatSPN possiamo calcolare gli T- e P- semiflussi

View file

@ -0,0 +1,19 @@
SRC = 2.tex
AUX = 2.aux
DEL = 2.aux 2.bbl 2.blg 2.log 2.out 2_unicode.tex 2.pdf 2.tex texput.log 2.pn.aux 2.pn.out 2.toc 2.pn.log 2.pn.tex 2.pn.toc 2.tex 2.pn.tex
NAME = pn
tesi:
@echo
@echo "=== Removing temporary files ==="
rm -f $(DEL)
@echo
@echo "=== Building from scratch ==="
emacs -batch 2.pn.org -f org-latex-export-to-latex --kill
python3 ../conv/conv.py 2.pn.tex 2.tex
pdflatex $(SRC)
@echo
@echo "=== All done. Generated $(NAME).pdf ==="
clean:
rm -f $(DEL)

View file

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- This project file has been saved by the New GreatSPN Editor, v.100 --><project name="Es2" version="121">
<gspn name="PT" show-color-cmd="false" show-fluid-cmd="false" show-timed-cmd="false" view-rates="false">
<nodes>
<place marking="n" name="S0" x="15.0" y="4.0"/>
<transition label-x="-5.0" label-y="0.0" name="Inizio_Servizio" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="15.55" y="9.0"/>
<place label-x="2.5" label-y="0.0" name="S1_a" x="9.0" y="13.0"/>
<place label-x="-2.0" label-y="0.0" name="S1_b" x="21.0" y="13.0"/>
<transition label-x="4.0" name="azione_locale_sa" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="9.55" y="17.0"/>
<transition label-x="-4.0" label-y="1.5" name="azione_locale_sb" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="21.55" y="17.0"/>
<place label-x="2.5" label-y="0.0" name="S2_a" x="9.0" y="21.0"/>
<place label-x="-2.5" label-y="0.0" name="S2_b" x="21.0" y="21.0"/>
<transition label-x="-4.0" label-y="0.0" name="Fine_Servizio" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="15.55" y="26.0"/>
<transition name="Reset_s" nservers-x="0.5" type="EXP" x="6.55" y="30.0"/>
<place name="S3" x="15.0" y="30.0"/>
<place name="Buffer_output" x="29.0" y="26.0"/>
<place name="Buffer_input" x="29.0" y="9.0"/>
<place label-x="-2.0" label-y="-1.0" marking="n" name="M0" x="45.0" y="1.0"/>
<place name="M1" x="45.0" y="9.0"/>
<transition label-y="-2.0" name="azione_locale_m" nservers-x="0.5" type="EXP" x="45.55" y="5.0"/>
<transition name="Richiesta_Servizio" nservers-x="0.5" type="EXP" x="40.55" y="9.0"/>
<transition label-x="-5.0" name="Attesa_Elaborazione" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="45.55" y="20.0"/>
<place label-y="-1.5" name="M2" x="45.0" y="14.0"/>
<place label-x="-1.5" name="M3" x="45.0" y="23.0"/>
<transition name="Reset_M" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="51.55" y="14.0"/>
<template last-binding="1" name="n" type="INTEGER" x="56.0" y="37.0"/>
</nodes>
<edges>
<arc head="Inizio_Servizio" kind="INPUT" tail="S0"/>
<arc head="S1_a" kind="OUTPUT" tail="Inizio_Servizio"/>
<arc head="S1_b" kind="OUTPUT" tail="Inizio_Servizio"/>
<arc head="azione_locale_sb" kind="INPUT" tail="S1_b"/>
<arc head="azione_locale_sa" kind="INPUT" tail="S1_a"/>
<arc head="S2_a" kind="OUTPUT" tail="azione_locale_sa"/>
<arc head="S2_b" kind="OUTPUT" tail="azione_locale_sb"/>
<arc head="Fine_Servizio" kind="INPUT" tail="S2_a"/>
<arc head="Fine_Servizio" kind="INPUT" tail="S2_b"/>
<arc head="S3" kind="OUTPUT" tail="Fine_Servizio"/>
<arc head="Reset_s" kind="INPUT" tail="S3"/>
<arc head="S0" kind="OUTPUT" tail="Reset_s">
<point x="3.5" y="31.0"/>
<point x="3.5" y="5.0"/>
</arc>
<arc head="Buffer_output" kind="OUTPUT" tail="Fine_Servizio"/>
<arc head="Inizio_Servizio" kind="INPUT" tail="Buffer_input"/>
<arc head="azione_locale_m" kind="INPUT" tail="M0">
<point x="42.5" y="2.0"/>
<point x="42.5" y="6.0"/>
</arc>
<arc head="M1" kind="OUTPUT" tail="azione_locale_m">
<point x="49.5" y="6.0"/>
<point x="49.5" y="10.0"/>
</arc>
<arc head="Richiesta_Servizio" kind="INPUT" tail="M1"/>
<arc head="Buffer_input" kind="OUTPUT" tail="Richiesta_Servizio"/>
<arc head="M2" kind="OUTPUT" tail="Richiesta_Servizio">
<point x="41.0" y="15.0"/>
</arc>
<arc head="Attesa_Elaborazione" kind="INPUT" tail="M2"/>
<arc head="Attesa_Elaborazione" kind="INPUT" tail="Buffer_output">
<point x="30.0" y="21.0"/>
<point x="45.0" y="21.0"/>
</arc>
<arc head="M3" kind="OUTPUT" tail="Attesa_Elaborazione"/>
<arc head="M0" kind="OUTPUT" tail="Reset_M">
<point x="52.0" y="2.0"/>
</arc>
<arc head="Reset_M" kind="INPUT" tail="M3">
<point x="52.0" y="24.0"/>
</arc>
</edges>
</gspn>
<measures gspn-name="PT" name="Measures" simplified-UI="false">
<assignments>
<assignment bind-model="SINGLE_VALUE" single-val="" type="INTEGER" varname="n"/>
</assignments>
<rgmedd2 variable-order="HEURISTIC_GPS"/>
<formulas>
<formula comment="Basic statistics of the toolchain execution." language="STAT"/>
<formula language="DD"/>
</formulas>
</measures>
<measures gspn-name="PT" name="RG of PT" rapid-type="BUILD_RG" simplified-UI="true">
<assignments>
<assignment bind-model="SINGLE_VALUE" single-val="" type="INTEGER" varname="n"/>
</assignments>
<greatspn/>
<formulas>
<formula language="STAT"/>
<formula language="RG"/>
<formula language="ALL"/>
<formula language="PERFORMANCE_INDEX"/>
</formulas>
</measures>
</project>

View file

@ -0,0 +1,18 @@
0 2
0 1
0 1
0 1
0 1
0 2
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1

View file

@ -1,17 +1,20 @@
|0|
|
f 0 18 0 15 0 0 0
S0 5 3.0 1.1666666666666667 2.9612499999999997 1.3622916666666667 0
f 3 18 0 15 0 0 0
n -7134 11.296875 6.432291666666667 0
r1 -7134 12.145833333333334 6.432291666666667 0
r2 -7134 12.8125 6.432291666666667 0
S0 -2 3.0 1.1666666666666667 2.9612499999999997 1.3622916666666667 0
S1_a 0 2.0 2.6666666666666665 2.305 2.6122916666666667 0
S1_b 0 4.0 2.6666666666666665 3.5497916666666662 2.6122916666666667 0
S2_a 0 2.0 4.0 2.305 3.9456249999999997 0
S2_b 0 4.0 4.0 3.466458333333333 3.9456249999999997 0
S3 0 3.0 5.5 2.9612499999999997 5.695625 0
R0 5 6.5 1.1666666666666667 6.450833333333333 1.3622916666666667 0
R0 -3 6.5 1.1666666666666667 6.450833333333333 1.3622916666666667 0
R1 0 6.5 2.6666666666666665 6.450833333333333 2.8622916666666662 0
R2 0 6.5 4.0 6.450833333333333 4.195625 0
R3 0 6.5 5.5 6.450833333333333 5.695625 0
M0 10 12.0 1.1666666666666667 11.601875 0.945625 0
M0 -1 12.0 1.1666666666666667 11.601875 0.945625 0
M1 0 12.0 2.5 11.935208333333334 2.6956249999999997 0
M2 0 12.0 3.3333333333333335 11.935208333333334 3.028958333333333 0
M3 0 12.0 4.833333333333333 11.685208333333334 5.028958333333333 0
@ -49,14 +52,14 @@ Fine_Servizio_s 1.0 0 0 2 0 3.0 4.833333333333333 1.8697916666666667 4.89062
9.583333333333334 6.333333333333333
9.666666666666666 6.333333333333333
0
Reset 1.0 0 0 1 1 1.5 5.5 1.3802083333333333 5.307291666666667 1.5833333333333333 5.567708333333333 0
Reset_S 1.0 0 0 1 1 1.5 5.5 1.3020833333333333 5.307291666666667 1.5833333333333333 5.567708333333333 0
1 6 0 0
1
1 1 2 0
1.5 4.833333333333333
1.5 1.1666666666666667
0
Inizio_Servizio_r 1.0 0 0 2 0 6.5 2.0 6.75 2.2239583333333335 6.583333333333333 2.0677083333333335 0
Inizio_Servizio_R 1.0 0 0 2 0 6.5 2.0 6.734375 2.2239583333333335 6.583333333333333 2.0677083333333335 0
1 7 0 0
1 16 2 0
7.083333333333333 2.0
@ -64,12 +67,12 @@ Inizio_Servizio_r 1.0 0 0 2 0 6.5 2.0 6.75 2.2239583333333335 6.58333333333333
1
1 8 0 0
0
Azione_locale 1.0 0 0 1 0 6.5 3.3333333333333335 6.697916666666667 3.640625 6.583333333333333 3.4010416666666665 0
Azione_locale_R 1.0 0 0 1 0 6.5 3.3333333333333335 6.609375 3.640625 6.583333333333333 3.4010416666666665 0
1 8 0 0
1
1 9 0 0
0
Fine_Servizio_r 1.0 0 0 1 0 6.5 4.833333333333333 6.619791666666667 5.140625 6.583333333333333 4.901041666666667 0
Fine_Servizio_R 1.0 0 0 1 0 6.5 4.833333333333333 6.604166666666667 5.140625 6.583333333333333 4.901041666666667 0
1 9 0 0
2
1 10 0 0
@ -78,7 +81,7 @@ Fine_Servizio_r 1.0 0 0 1 0 6.5 4.833333333333333 6.619791666666667 5.140625
8.0 6.333333333333333
9.666666666666666 6.333333333333333
0
T3 1.0 0 0 1 1 5.333333333333333 5.5 5.3125 5.307291666666667 5.416666666666667 5.567708333333333 0
Reset_R 1.0 0 0 1 1 5.333333333333333 5.5 5.125 5.307291666666667 5.416666666666667 5.567708333333333 0
1 10 0 0
1
1 7 1 0

View file

@ -2,7 +2,7 @@
<!-- This project file has been saved by the New GreatSPN Editor, v.100 --><project name="Es2B" version="121">
<gspn name="PT" show-color-cmd="false" show-fluid-cmd="false" show-timed-cmd="false" view-rates="false" zoom="75">
<nodes>
<place marking="5" name="S0" x="17.0" y="6.0"/>
<place marking="r1" name="S0" x="17.0" y="6.0"/>
<transition label-x="-5.0" label-y="0.0" name="Inizio_Servizio_s" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="17.55" y="11.0"/>
<place label-x="2.5" label-y="0.0" name="S1_a" x="11.0" y="15.0"/>
<place label-x="-2.0" label-y="0.0" name="S1_b" x="23.0" y="15.0"/>
@ -13,7 +13,7 @@
<transition label-x="-4.0" label-y="0.0" name="Fine_Servizio_s" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="17.55" y="28.0"/>
<transition name="Reset_S" nservers-x="0.5" type="EXP" x="8.55" y="32.0"/>
<place name="S3" x="17.0" y="32.0"/>
<place marking="5" name="R0" x="38.0" y="6.0"/>
<place marking="r2" name="R0" x="38.0" y="6.0"/>
<place name="R1" x="38.0" y="15.0"/>
<place name="R2" x="38.0" y="23.0"/>
<place name="R3" x="38.0" y="32.0"/>
@ -21,7 +21,7 @@
<transition label-x="3.5" label-y="1.5" name="Azione_locale_R" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="38.55" y="19.0"/>
<transition label-x="3.5" label-y="1.5" name="Fine_Servizio_R" nservers-x="0.5" rotation="4.71238898038469" type="EXP" x="38.55" y="28.0"/>
<transition name="Reset_R" nservers-x="0.5" rotation="6.283185307179586" type="EXP" x="31.55" y="32.0"/>
<place label-x="-2.0" label-y="-1.0" marking="10" name="M0" x="71.0" y="6.0"/>
<place label-x="-2.0" label-y="-1.0" marking="n" name="M0" x="71.0" y="6.0"/>
<place name="M1" x="71.0" y="14.0"/>
<transition label-y="-2.0" name="azione_locale_m" nservers-x="0.5" type="EXP" x="71.55" y="10.0"/>
<transition name="Richiesta_Servizio" nservers-x="0.5" type="EXP" x="66.55" y="14.0"/>
@ -35,6 +35,9 @@
<place name="P0" x="46.0" y="9.0"/>
<place name="P1" x="46.0" y="3.0"/>
<place label-x="-3.0" label-y="0.0" name="Risultato" x="57.0" y="25.0"/>
<template last-binding="2" name="n" type="INTEGER" x="67.0" y="38.0"/>
<template last-binding="1" name="r1" type="INTEGER" x="72.0" y="38.0"/>
<template last-binding="1" name="r2" type="INTEGER" x="76.0" y="38.0"/>
</nodes>
<edges>
<arc head="Inizio_Servizio_s" kind="INPUT" tail="S0"/>
@ -114,7 +117,11 @@
</edges>
</gspn>
<measures gspn-name="PT" name="Measures" simplified-UI="false">
<assignments/>
<assignments>
<assignment bind-model="SINGLE_VALUE" single-val="" type="INTEGER" varname="n"/>
<assignment bind-model="SINGLE_VALUE" single-val="" type="INTEGER" varname="r1"/>
<assignment bind-model="SINGLE_VALUE" single-val="" type="INTEGER" varname="r2"/>
</assignments>
<rgmedd2/>
<formulas>
<formula comment="Basic statistics of the toolchain execution." language="STAT"/>

Some files were not shown because too many files have changed in this diff Show more