From 515b097317a7a459a64885f349891e99b30d0cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nut=CC=A6iu?= Date: Mon, 25 Apr 2016 20:35:41 +0300 Subject: [PATCH] Renaming labs --- {lab1 => lab01}/a.out | Bin {lab1 => lab01}/lab1.c | 0 {lab2 => lab02}/libstr.a | Bin {lab2 => lab02}/main.c | 0 {lab2 => lab02}/makefile | 0 {lab2 => lab02}/my_string.x | Bin {lab2 => lab02}/str.c | 0 {lab2 => lab02}/str.h | 0 {lab2 => lab02}/str.o | Bin {lab3 => lab03}/a | Bin {lab3 => lab03}/a.cpp | 0 {lab3 => lab03}/a.out | Bin {lab3 => lab03}/b | Bin {lab3 => lab03}/c | Bin {lab3 => lab03}/d | Bin {lab3 => lab03}/i.txt | 0 {lab3 => lab03}/lab3_1.c | 0 {lab3 => lab03}/lab3_2.c | 0 {lab3 => lab03}/lab3_2b.c | 0 {lab3 => lab03}/lab3_3.c | 0 {lab3 => lab03}/lab3_4.c | 0 {lab4 => lab04}/a.out | Bin {lab4 => lab04}/i | 0 {lab4 => lab04}/main.c | 0 {lab4 => lab04}/test.c | 0 {lab5 => lab05}/a.out | Bin {lab5 => lab05}/tictac.c | 0 {lab6 => lab06}/a.out | Bin .../a.out.dSYM/Contents/Info.plist | 0 .../a.out.dSYM/Contents/Resources/DWARF/a.out | Bin {lab6 => lab06}/i | 0 {lab6 => lab06}/l6_1.c | 0 {lab6 => lab06}/l6_2.c | 0 {lab6 => lab06}/l6_3.c | 0 {lab6 => lab06}/l6_4.c | 0 {lab7 => lab07}/2.c | 0 {lab7 => lab07}/3.c | 0 {lab7 => lab07}/4.c | 0 {lab7 => lab07}/5.c | 0 {lab7 => lab07}/a.out | Bin .../a.out.dSYM/Contents/Info.plist | 0 .../a.out.dSYM/Contents/Resources/DWARF/a.out | Bin {lab7 => lab07}/converted.txt | 0 {lab7 => lab07}/dos_2.c | 0 {lab7 => lab07}/dos_3.c | 0 {lab7 => lab07}/dos_4.c | 0 {lab7 => lab07}/dos_5.c | 0 {lab7 => lab07}/g.srt | 0 {lab7 => lab07}/sub.srt | 0 {lab7 => lab07}/test | 0 {lab7 => lab07}/working.srt | 0 lab08/1 | Bin 0 -> 9428 bytes {lab8 => lab08}/1.c | 0 lab08/2 | Bin 0 -> 13900 bytes {lab8 => lab08}/2.c | 0 {lab8 => lab08}/cipher.c | 0 {lab8 => lab08}/cipher.h | 0 lab08/cipher.o | Bin 0 -> 1180 bytes {lab8 => lab08}/constants.h | 0 {lab8 => lab08}/data.bdb | Bin {lab8 => lab08}/libcipher.a | Bin {lab8 => lab08}/makefile | 0 {lab8 => lab08}/speck_macro.h | 0 {lab9 => lab09}/1.c | 0 lab09/2.c | 53 ++++++++++++++++++ lab09/a.out | Bin 0 -> 8672 bytes lab09/koch.svg | 1 + lab09/t.c | 15 +++++ lab09/test.svg | 14 +++++ 69 files changed, 83 insertions(+) rename {lab1 => lab01}/a.out (100%) rename {lab1 => lab01}/lab1.c (100%) rename {lab2 => lab02}/libstr.a (100%) rename {lab2 => lab02}/main.c (100%) rename {lab2 => lab02}/makefile (100%) rename {lab2 => lab02}/my_string.x (100%) rename {lab2 => lab02}/str.c (100%) rename {lab2 => lab02}/str.h (100%) rename {lab2 => lab02}/str.o (100%) rename {lab3 => lab03}/a (100%) rename {lab3 => lab03}/a.cpp (100%) rename {lab3 => lab03}/a.out (100%) rename {lab3 => lab03}/b (100%) rename {lab3 => lab03}/c (100%) rename {lab3 => lab03}/d (100%) rename {lab3 => lab03}/i.txt (100%) rename {lab3 => lab03}/lab3_1.c (100%) rename {lab3 => lab03}/lab3_2.c (100%) rename {lab3 => lab03}/lab3_2b.c (100%) rename {lab3 => lab03}/lab3_3.c (100%) rename {lab3 => lab03}/lab3_4.c (100%) rename {lab4 => lab04}/a.out (100%) rename {lab4 => lab04}/i (100%) rename {lab4 => lab04}/main.c (100%) rename {lab4 => lab04}/test.c (100%) rename {lab5 => lab05}/a.out (100%) rename {lab5 => lab05}/tictac.c (100%) rename {lab6 => lab06}/a.out (100%) rename {lab6 => lab06}/a.out.dSYM/Contents/Info.plist (100%) rename {lab6 => lab06}/a.out.dSYM/Contents/Resources/DWARF/a.out (100%) rename {lab6 => lab06}/i (100%) rename {lab6 => lab06}/l6_1.c (100%) rename {lab6 => lab06}/l6_2.c (100%) rename {lab6 => lab06}/l6_3.c (100%) rename {lab6 => lab06}/l6_4.c (100%) rename {lab7 => lab07}/2.c (100%) rename {lab7 => lab07}/3.c (100%) rename {lab7 => lab07}/4.c (100%) rename {lab7 => lab07}/5.c (100%) rename {lab7 => lab07}/a.out (100%) rename {lab7 => lab07}/a.out.dSYM/Contents/Info.plist (100%) rename {lab7 => lab07}/a.out.dSYM/Contents/Resources/DWARF/a.out (100%) rename {lab7 => lab07}/converted.txt (100%) rename {lab7 => lab07}/dos_2.c (100%) rename {lab7 => lab07}/dos_3.c (100%) rename {lab7 => lab07}/dos_4.c (100%) rename {lab7 => lab07}/dos_5.c (100%) rename {lab7 => lab07}/g.srt (100%) rename {lab7 => lab07}/sub.srt (100%) rename {lab7 => lab07}/test (100%) rename {lab7 => lab07}/working.srt (100%) create mode 100755 lab08/1 rename {lab8 => lab08}/1.c (100%) create mode 100755 lab08/2 rename {lab8 => lab08}/2.c (100%) rename {lab8 => lab08}/cipher.c (100%) rename {lab8 => lab08}/cipher.h (100%) create mode 100644 lab08/cipher.o rename {lab8 => lab08}/constants.h (100%) rename {lab8 => lab08}/data.bdb (100%) rename {lab8 => lab08}/libcipher.a (100%) rename {lab8 => lab08}/makefile (100%) rename {lab8 => lab08}/speck_macro.h (100%) rename {lab9 => lab09}/1.c (100%) create mode 100644 lab09/2.c create mode 100755 lab09/a.out create mode 100644 lab09/koch.svg create mode 100644 lab09/t.c create mode 100644 lab09/test.svg diff --git a/lab1/a.out b/lab01/a.out similarity index 100% rename from lab1/a.out rename to lab01/a.out diff --git a/lab1/lab1.c b/lab01/lab1.c similarity index 100% rename from lab1/lab1.c rename to lab01/lab1.c diff --git a/lab2/libstr.a b/lab02/libstr.a similarity index 100% rename from lab2/libstr.a rename to lab02/libstr.a diff --git a/lab2/main.c b/lab02/main.c similarity index 100% rename from lab2/main.c rename to lab02/main.c diff --git a/lab2/makefile b/lab02/makefile similarity index 100% rename from lab2/makefile rename to lab02/makefile diff --git a/lab2/my_string.x b/lab02/my_string.x similarity index 100% rename from lab2/my_string.x rename to lab02/my_string.x diff --git a/lab2/str.c b/lab02/str.c similarity index 100% rename from lab2/str.c rename to lab02/str.c diff --git a/lab2/str.h b/lab02/str.h similarity index 100% rename from lab2/str.h rename to lab02/str.h diff --git a/lab2/str.o b/lab02/str.o similarity index 100% rename from lab2/str.o rename to lab02/str.o diff --git a/lab3/a b/lab03/a similarity index 100% rename from lab3/a rename to lab03/a diff --git a/lab3/a.cpp b/lab03/a.cpp similarity index 100% rename from lab3/a.cpp rename to lab03/a.cpp diff --git a/lab3/a.out b/lab03/a.out similarity index 100% rename from lab3/a.out rename to lab03/a.out diff --git a/lab3/b b/lab03/b similarity index 100% rename from lab3/b rename to lab03/b diff --git a/lab3/c b/lab03/c similarity index 100% rename from lab3/c rename to lab03/c diff --git a/lab3/d b/lab03/d similarity index 100% rename from lab3/d rename to lab03/d diff --git a/lab3/i.txt b/lab03/i.txt similarity index 100% rename from lab3/i.txt rename to lab03/i.txt diff --git a/lab3/lab3_1.c b/lab03/lab3_1.c similarity index 100% rename from lab3/lab3_1.c rename to lab03/lab3_1.c diff --git a/lab3/lab3_2.c b/lab03/lab3_2.c similarity index 100% rename from lab3/lab3_2.c rename to lab03/lab3_2.c diff --git a/lab3/lab3_2b.c b/lab03/lab3_2b.c similarity index 100% rename from lab3/lab3_2b.c rename to lab03/lab3_2b.c diff --git a/lab3/lab3_3.c b/lab03/lab3_3.c similarity index 100% rename from lab3/lab3_3.c rename to lab03/lab3_3.c diff --git a/lab3/lab3_4.c b/lab03/lab3_4.c similarity index 100% rename from lab3/lab3_4.c rename to lab03/lab3_4.c diff --git a/lab4/a.out b/lab04/a.out similarity index 100% rename from lab4/a.out rename to lab04/a.out diff --git a/lab4/i b/lab04/i similarity index 100% rename from lab4/i rename to lab04/i diff --git a/lab4/main.c b/lab04/main.c similarity index 100% rename from lab4/main.c rename to lab04/main.c diff --git a/lab4/test.c b/lab04/test.c similarity index 100% rename from lab4/test.c rename to lab04/test.c diff --git a/lab5/a.out b/lab05/a.out similarity index 100% rename from lab5/a.out rename to lab05/a.out diff --git a/lab5/tictac.c b/lab05/tictac.c similarity index 100% rename from lab5/tictac.c rename to lab05/tictac.c diff --git a/lab6/a.out b/lab06/a.out similarity index 100% rename from lab6/a.out rename to lab06/a.out diff --git a/lab6/a.out.dSYM/Contents/Info.plist b/lab06/a.out.dSYM/Contents/Info.plist similarity index 100% rename from lab6/a.out.dSYM/Contents/Info.plist rename to lab06/a.out.dSYM/Contents/Info.plist diff --git a/lab6/a.out.dSYM/Contents/Resources/DWARF/a.out b/lab06/a.out.dSYM/Contents/Resources/DWARF/a.out similarity index 100% rename from lab6/a.out.dSYM/Contents/Resources/DWARF/a.out rename to lab06/a.out.dSYM/Contents/Resources/DWARF/a.out diff --git a/lab6/i b/lab06/i similarity index 100% rename from lab6/i rename to lab06/i diff --git a/lab6/l6_1.c b/lab06/l6_1.c similarity index 100% rename from lab6/l6_1.c rename to lab06/l6_1.c diff --git a/lab6/l6_2.c b/lab06/l6_2.c similarity index 100% rename from lab6/l6_2.c rename to lab06/l6_2.c diff --git a/lab6/l6_3.c b/lab06/l6_3.c similarity index 100% rename from lab6/l6_3.c rename to lab06/l6_3.c diff --git a/lab6/l6_4.c b/lab06/l6_4.c similarity index 100% rename from lab6/l6_4.c rename to lab06/l6_4.c diff --git a/lab7/2.c b/lab07/2.c similarity index 100% rename from lab7/2.c rename to lab07/2.c diff --git a/lab7/3.c b/lab07/3.c similarity index 100% rename from lab7/3.c rename to lab07/3.c diff --git a/lab7/4.c b/lab07/4.c similarity index 100% rename from lab7/4.c rename to lab07/4.c diff --git a/lab7/5.c b/lab07/5.c similarity index 100% rename from lab7/5.c rename to lab07/5.c diff --git a/lab7/a.out b/lab07/a.out similarity index 100% rename from lab7/a.out rename to lab07/a.out diff --git a/lab7/a.out.dSYM/Contents/Info.plist b/lab07/a.out.dSYM/Contents/Info.plist similarity index 100% rename from lab7/a.out.dSYM/Contents/Info.plist rename to lab07/a.out.dSYM/Contents/Info.plist diff --git a/lab7/a.out.dSYM/Contents/Resources/DWARF/a.out b/lab07/a.out.dSYM/Contents/Resources/DWARF/a.out similarity index 100% rename from lab7/a.out.dSYM/Contents/Resources/DWARF/a.out rename to lab07/a.out.dSYM/Contents/Resources/DWARF/a.out diff --git a/lab7/converted.txt b/lab07/converted.txt similarity index 100% rename from lab7/converted.txt rename to lab07/converted.txt diff --git a/lab7/dos_2.c b/lab07/dos_2.c similarity index 100% rename from lab7/dos_2.c rename to lab07/dos_2.c diff --git a/lab7/dos_3.c b/lab07/dos_3.c similarity index 100% rename from lab7/dos_3.c rename to lab07/dos_3.c diff --git a/lab7/dos_4.c b/lab07/dos_4.c similarity index 100% rename from lab7/dos_4.c rename to lab07/dos_4.c diff --git a/lab7/dos_5.c b/lab07/dos_5.c similarity index 100% rename from lab7/dos_5.c rename to lab07/dos_5.c diff --git a/lab7/g.srt b/lab07/g.srt similarity index 100% rename from lab7/g.srt rename to lab07/g.srt diff --git a/lab7/sub.srt b/lab07/sub.srt similarity index 100% rename from lab7/sub.srt rename to lab07/sub.srt diff --git a/lab7/test b/lab07/test similarity index 100% rename from lab7/test rename to lab07/test diff --git a/lab7/working.srt b/lab07/working.srt similarity index 100% rename from lab7/working.srt rename to lab07/working.srt diff --git a/lab08/1 b/lab08/1 new file mode 100755 index 0000000000000000000000000000000000000000..5b28b237f2726dc0a22e0e335edaf637d8bc9401 GIT binary patch literal 9428 zcmeHNZERE58NN3O!+Z?GwvGTrTsl&bX$zP^N5?X7!Q#3&kSDngA z7FxGX5Es`{)UHUKri$&y#E_<;Zj~6_m`(TyOjAR(N>nW!QfYS)P|=lkp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bwLc)f}OGrH-5yMzdh(^eUus>=L)&y*w5p8St(7@qU zK=ENct~Lo?G$K)x;6riw0T0DuUjFEe+!I0t0+4D$Dl+Hw!?a( zEfzKK4Znw`yIt|J9g05`F~U*ZpzApHyb{DGA^cJYH%s`G9>cOfD=~i2BzfLZGB;$B z@}UypH%Ssbs?hW$@=yWpzvv1L-lt1M_H+Ti4JzPwQ<7c6RnVk1r3yOxa9>Wd zC{yr(3JP63ork9kz}j;KK3(G0|80;$>aPbQ@h_8j_e6oyW~Kh)5)VndcarGeB=JrR zN%HqfoW2()oEDtq`(^(l5~q*9ssAa7r=bHT&?#tXhg^&YrT+WsQ1M?LBjZ=M$DuCn&}G2r zUKvy)q9D^F0w#mXxXIu=R*(d85`-S4DAa?wk%>$-EW-7i@YjcB27Oo}(QSEVSf1ut tcNj%vZjpkm=DT1hsOUaiDxrPNF^B_P6N0<|*dh}QyR{{bfoc=iAQ literal 0 HcmV?d00001 diff --git a/lab8/2.c b/lab08/2.c similarity index 100% rename from lab8/2.c rename to lab08/2.c diff --git a/lab8/cipher.c b/lab08/cipher.c similarity index 100% rename from lab8/cipher.c rename to lab08/cipher.c diff --git a/lab8/cipher.h b/lab08/cipher.h similarity index 100% rename from lab8/cipher.h rename to lab08/cipher.h diff --git a/lab08/cipher.o b/lab08/cipher.o new file mode 100644 index 0000000000000000000000000000000000000000..5acd2dc9e1d69772b8b0d6c0268c323c16c6bdc0 GIT binary patch literal 1180 zcmaJ=&ubG=5S~reCfb?=^{`TzMyTKf z974v-C#!2&v%>7sv*l8bF=KwXuSuOpve-ot+NFz!+(~Zk6Bx4!EMLy9T0wqzzpB)$ zOFey{<5k813bN(F44w&!#!q-T4bv#Xn>vQDh-e_!2-H7s+HPOJ<5Tzq-51+6@ljKD z-_9w?9-rTSLj=K%MpQp&>0A4n{nfah>eAE*nRec@%SZJlJ-y_PXrAX0RP0?8LPSwy zQ2H5^P_U1J%0?&CrmY56^+WkK2X#k=vm^Q)*`FKHKO_6f^LwCF6G~zt60PHu8LXc} zFZ2&Qlk)*)V~JOxTPMflb;QHR4^7FFd;F7EL|#|&QhiZLQxo3s%l9TKGc`u^!vmat?k2E}hF~ literal 0 HcmV?d00001 diff --git a/lab8/constants.h b/lab08/constants.h similarity index 100% rename from lab8/constants.h rename to lab08/constants.h diff --git a/lab8/data.bdb b/lab08/data.bdb similarity index 100% rename from lab8/data.bdb rename to lab08/data.bdb diff --git a/lab8/libcipher.a b/lab08/libcipher.a similarity index 100% rename from lab8/libcipher.a rename to lab08/libcipher.a diff --git a/lab8/makefile b/lab08/makefile similarity index 100% rename from lab8/makefile rename to lab08/makefile diff --git a/lab8/speck_macro.h b/lab08/speck_macro.h similarity index 100% rename from lab8/speck_macro.h rename to lab08/speck_macro.h diff --git a/lab9/1.c b/lab09/1.c similarity index 100% rename from lab9/1.c rename to lab09/1.c diff --git a/lab09/2.c b/lab09/2.c new file mode 100644 index 0000000..6ef5650 --- /dev/null +++ b/lab09/2.c @@ -0,0 +1,53 @@ +#include +#include +#include + +#define SIN 0.8660254 + +typedef struct{ + double x, y; +} coordinate; + +// Draws the computation +void draw_koch_snowflake(coordinate a, coordinate b, int t, FILE *f){ + if(!t){ + fprintf(f, "M%f %f L%f %F ", a.x, a.y, b.x, b.y); + return; + } + coordinate tmp = { (b.x - a.x)/3, (b.y - a.y)/3}; + coordinate c = {a.x + tmp.x, a.y + tmp.y}; + coordinate d = {a.x + (1.5 * tmp.x - SIN * tmp.y), a.y + (1.5 * tmp.y + SIN * tmp.x)}; + coordinate e = {a.x + 2 * tmp.x, a.y + 2 * tmp.y}; + draw_koch_snowflake(a, c, t-1, f); + draw_koch_snowflake(c, d, t-1, f); + draw_koch_snowflake(d, e, t-1, f); + draw_koch_snowflake(e, b, t-1, f); +} + +// Provides a frame for the path +void framework(coordinate a, coordinate b, int t, FILE *f){ + fprintf(f, ""); +} + +int main(int argc, char *argv[]){ + int w, h, r; + w = h = 512; + r = w / 3; + int n = atoi(argv[1]); + FILE *f; + if( !(f=fopen("koch.svg","w")) ) return -1; + fprintf(f,"", w, h); + coordinate a = {w / 2, h / 2 + r}; + coordinate b = {w / 2 - r * SIN, h / 2 - r * 0.5}; + coordinate c = {w / 2 + r * SIN, h / 2 - r * 0.5}; + framework(b, a, n, f); + framework(c, b, n, f); + framework(a, c, n, f); + fprintf(f, ""); + fclose(f); + return 0; +} diff --git a/lab09/a.out b/lab09/a.out new file mode 100755 index 0000000000000000000000000000000000000000..e8fa185d26e70c2289b71f9d939fb3d99623ab02 GIT binary patch literal 8672 zcmeHNZ)jUp6u+_U?B-@tP?>JSw_vy0Vbe`3+i16T?#;J9ah+Qr9gCN=eQ84Tk0dpn z66xrMJYu1OA2t}H$UamN2}7iQD{R<01fwEU>4&1*cx4r8zpTn!{GIn+nt!eMRd|Qq zd+xdCch9}|ch75@cl+I6zdw4MF-sL=Lys}WtSGF8u}eJC*&LgBo#<8|?@_~uFK zEfq_txvE8R8ZZIpXGHgzQiwL*R@%o58*8KGuyux;^MpK@C}7Lub#B0B;NDWLW5_m| zdPg-I(i?isc|0-D9bf4xj~9GWkGI)CFsfx2X?;JRhQQV-&bZ$lQxUKH8&Y!)+|xQkWa_pFST? z$f2e~O;|^u8z9II6q+w1=={BC*u;-1CIcn|CIcn||D6Gsq}-J*EDT}9lC@4;MCDvY z<(fm~QI*uJqzq(-Q?tx^sRZ(6!E&Ud?lT_{vfA_cQE~;lzy*Py@bfpNZS#bYotYjQp7p+UFucD z8EJSKsYri5AbJime_X@2Y$tp=HIsHNq@5~OcoO|!tL78vuizwO(?u9SDB_rsz4GAC zC2M0A9J!{`q6)K0yp!+Arp1L7K%)o!T|XnMekAmSj@F^NZzk`XTy>mV8#lf(4ms86 zqL`TdoR)K$bZQP1AdXF>oS{6mQO4RlS#<|xM8Qw#;>?hrke*3(U8$c&IT6|BBBUpy z-qVjSKum!mkh2GTP*V}Fs?X_Uq6X7Q^oKaqsORQruKpSZ0EsXdel!N=kMVx{B$n!v(%!X^FL5)C$*;0g3e3(hr2rOz4PV$gL=oZp=;Z9d+wmK z-Y4Ma1gRqeYmIsnexbL`E-=9^_yWOTn>`!}%XR_Zjw1bXo4q^e?di{(FC_!L34fb? zw_R`?VEvIEe^dPJK9*#yP{Lp+7>>8u{fR_$zr&GCCYzEkH$`H7jy=uI%?=>!I%NM~ zFc9uv4Y+&XzI_hOYZr{E>U-^iUk>#76K!_153p8>bb$5)j@VXxV}}B)!b2V%euqjculiZcG_EvQ`&5~Iw#>#$>6QOepgUT+i-ok8_Y1g* duH=NT#tAQQ!Zl9xbI6~7!Tk#B73Zfd;2(%z6@mZ& literal 0 HcmV?d00001 diff --git a/lab09/koch.svg b/lab09/koch.svg new file mode 100644 index 0000000..9181e3d --- /dev/null +++ b/lab09/koch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lab09/t.c b/lab09/t.c new file mode 100644 index 0000000..54657bf --- /dev/null +++ b/lab09/t.c @@ -0,0 +1,15 @@ +#include +#define N 3 + +void movedisks(int ndisks, char fromPeg, char toPeg, char auxPeg) { +if (ndisks == 1) + printf("Move disk 1 from [%c] to [%c]\n", fromPeg, toPeg); +else { + movedisks ( ndisks - 1 , fromPeg , auxPeg , toPeg ) ; + printf("Move disk %d from [%c] to [%c]\n", ndisks, fromPeg, toPeg); + movedisks ( ndisks - 1 , auxPeg , toPeg , fromPeg ) ; + } +} +int main(void) { + movedisks(N, 'A', 'C', 'B'); +} diff --git a/lab09/test.svg b/lab09/test.svg new file mode 100644 index 0000000..799f916 --- /dev/null +++ b/lab09/test.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file