https___www.cse.unsw.edu.au__cs9311_21T1_lab_06_06.html
�������� ���
������
�
�
��
�
���
�����
�������������������
����
���
������
�
�
��
�
���
�����
�������������������
���� ���
���� !”#$%&%'(“#%$)”*#$+,$-“.%$/,0$1′)(+”(%$”234%5″2″2-$.”%6#$7)#%4$,2$#”*18%$9:;$<0%'"%#4%5"2"2-$9:;$502(+",2#4%5"2"2-$=;1-9:;$502(+",2#)44"2-$2%6$)--'%-)+%$,1%')+,'# !"#$%&%'("#%$6"88$2,+$%&18)"2$!,6$+,$4,$%.%'/+!"2-$"2$5"2%$4%+)"8>$=)’+$,5$+!%$)”*$,5$+!%$%&%'(“#%$”#$+!)+$/,0$%&18,’%$!,6$+,$0#%$+!%$=,#+-‘%9:;#/#+%*>$?$.%’/$”*1,’+)2+$+,,8$5,’$+!”#$”#$+!%$=,#+-‘%9:;$@)20)8>$A2$1)’+”(08)’B$+!%$5,88,6″2-$#%(+”,2#$,5$+!%$@)20)8$)’%$’%8%.)2+3$+!%$9:;$CDEFGEHIJCGKLJ$#+)+%*%2+M$+!%$9:;$CDEFGE$FNNDENFGE$#+)+%*%2+M$+!%$=;1-9:;$8)2-0)-%$4%#(‘”1+”,2>OPQRSTUVWXY,2#”4%’$)2$,2Z8″2%$7%%’$’)+”2-$#/#+%*$6!”(!$4%#(‘”7%#$7%%’#B$7’%6%'”%#B$+)#+%’#B$’)+”2-#B$%+(>$ )#+%’#$)’%$+!%$0#%’#$,5$+!%$#/#+%*$6!,$1′,.”4%$’)+”2-#,5$.)'”,0#$7%%’#>$[)(!$7%%’$”#$7’%6%4$)((,’4″2-$+,$)$1)’+”(08)’$#+/8%B$7/$)$-“.%2$7’%6%’/>$9″2(%$6%$)’%$”2+%’%#+%4$”2$+!%$8,()+”,2$,5$+)#+%’#$)24$7’%6%’#B6%$*)”2+)”2$)$(,88%(+”,2$,5$8,()+”,2#$6!”(!$”#$#!)’%4$7%+6%%2$+!%$+6,>$\)+”2-#$)’%$7)#%4$,2$#”*18%$]>>̂$20*%'”()8$#()8%$_̂$*%)2#$̀6,’84$(8)##”(̀B$]*%)2#$̀7)’%8/$4′”2a)78%̀b>?2$1,##”78%$[c\$4%#”-2$5,’$+!”#$#(%2)'”,$”#$)#$5,88,6#3
d,+%$+!)+$+!%$[c\$4%#”-2$”2(804%#$20*%'”($1′”*)’/$a%/$)++'”70+%#$_+!%$,2%#$()88%4$efb$+,$)88,6$5,’$+!%$5)(+$+!)+$2)*%#$*”-!+$(8)#!>$_g#”2-$#0(!)++'”70+%#$)8#,$#”*18″5″%#$+!%$4%'”.%4$’%8)+”,2)8$*,4%8B$7/$)88,6″2-$)88$5,’%”-2$a%/#$+,$7%$’%1’%#%2+%4$7/$)$#”2-8%$)++'”70+%>b?$’%8)+”,2)8$#(!%*)$(,”%#1,24″2-$+,$+!”#$[c\$4%#”-2$”#$).)”8)78%$”2$+!%$5″8%hijklmnhop$?$5″8%$(,2+)”2″2-$1,108)+%4$+)78%#$5,’$+!”#$#(!%*)$”#$).)”8)78%$”2$+!%$5″8%fmqmnhop$d,+%$+!)+$+!%$fmqmnhop$5″8%$”#$0#”2-$=,#+-‘9:;r#$708a$8,)4″2-$*%(!)2″#*$CLstM$(!%(a$+!%$=,#+-‘%9:;$*)20)8$5,’$4%+)”8#$,2$!,6$+!”#$6,’a#>$ !%$CLst#+)+%*%2+$”#$)$1)’+$,5$=,#+-‘%9:;r#$9:;$4″)8%(+B$)24$()2$,28/$7%$0#%4$7/$+!%$=,#+-‘%9:;$#01%’Z0#%’$_6!”(!$”#$/,0$6!%2$/,0r’%$’022″2-$/,0’$,62#%’.%’B$)#$/,0$)’%$,2$u'”%-b>$?8#,B$#”2(%$+!%$ef$)++'”70+%#$)’%$#%'”)8$1′”*)’/$a%/#B$+!%/$!).%$)2$)##,(“)+%4$#%<0%2(%B$6!"(!$2%%4#$+,$7%$#%+$+,$+!%(,''%(+$.)80%$)5+%'$+!%$+018%#$)'%$8,)4%4$_#,$+!)+$)2/$2%6$+018%#$6"88$!).%$)11',1'")+%$#%<0%2(%$.)80%#$-%2%')+%4b> !%’%$”#$)8#,$)$+%*18)+%$5″8%$-“.”2-$!%)4%’#$5,’$+!%$.”%6#B$502(+”,2#$)24$)–‘%-)+%#$/,0$2%%4$+,$6′”+%>vwmixynhop$u’)7$)$(,1/$,5$+!”#$5″8%$+,$#).%$/,0’#%85$#,*%$+/1″2-> !%$’%8)+”,2)8$*,4%8$)++%*1+#$+,$()1+0’%$)88$,5$+!%$#%*)2+”(#$,5$+!%$[c\$4%#”-2>$z,6%.%’B$+!%’%$”#$,2%$4″55%’%2(%$7%+6%%2$+!%$’%8)+”,2)8$*,4%8$)24$+!%[c\$4%#”-2$”2$+!)+$7%%’$#+/8%#$!).%$7%%2$(,2.%’+%4$”2+,$%2+”+”%#>$ !”#$”#$1′”*)'”8/$+,$%2#0’%$+!)+$)88$7%%’$#+/8%$”25,’*)+”,2$8,,a#$(,2#”#+%2+$_%>->$6%4,2r+$!).%$#,*%$7%%’#$()88%4$̀8)-%’̀$)24$,+!%’#$()88%4$̀8))-%’̀b>{,0$#!,084$(‘%)+%$)$2%6$4)+)7)#%$()88%4$̀7%%’#̀$)24$8,)4$+!%$#(!%*)$)24$4)+)$”2+,$+!”#$4)+)7)#%>$ !%$5,88,6″2-$(,**)24#$6″8$4,$+!”#3|$}~������$���~�$CDEFGE$�FGF�F�E$|$����$���~�$��$�}��������$���$�����$����$�������$����$��$� ¡¢£¤$¥���¦§��$���$|$����$���~�$��$��������$���$�����$����$�������$¥���¦§��$¦̈���$�¦̈��$���$���$©2(%$+!%$#(!%*)$)24$4)+)$)’%$8,)4%4B$(!%(a$+!)+$%.%’/+!”2-$”#$”2$,’4%’$7/$’022″2-$+!%$5,88,6″2-$<0%'"%#$)24$#%%"2-$6!%+!%'$/,0$-%+$+!%$#)*%$'%#08+#3ªkkwh«¬$����}�$}®̄�°±²$�~�$³��́ µ̄�¶$$i·̧¹q$$ººººººº$$$$$»¼$½¾$w·¿À$
�������� ���
������
�
�
��
�
���
�����
�������������������
����
���
������
�
�
��
�
���
�����
�������������������
���� ���
����� !"#$%$&'"()*$+",-./"01#'$-".-2$-"34"()*$+5""678�9"""::::::::"";<=>“”?�@AA””B�CD@�””E�AA””E@F9″”G�D��””H=6FI””H=>�J””H@��””K=�=F”LMN”�@O�P”QR”STU”VWSWXWYU”VZUY[\S”]ZẐ”_Z̀̀U_Sa”S̀b”SZ”cZ̀̂ “ZdS”cTWS”cU[S”c̀Z[e”W[V”STU[“S̀b”SZ”]ZWV”STU”VWSW”_Z̀̀U_S]bf”g[_U”bZd\̀U”YSWShYRhUV”STWS”STU”VWSWXWYU”hY_Z̀̀U_Sa”_Z[Sh[dU”chST”STU”UiÙ_hYUYfjklmnoplpqZd”rheTS”cW[S”SZ”_Z]]U_S”SZeUSTÙ”W]]”bZd̀”shUc”VURh[hShZ[Y”h[“W”Rh]Uf”t”SUru]WSU”hY”WsWh]WX]U”RZ̀”SThYa”SZ”YWsU”YZrU”Sbuh[efvf”wh[V”ZdS”cTZ”rWVU”cTWS”̀WSh[eYfQR”bZd”]ZẐ”WS”STU”H=D796�”SWX]Ua”bZd\]]”YUU”STWS”hS”_Z[SWh[Y”xdYS”W”Xd[_T”ZR”[drXÙYf”yThY”hY”eZZV”RZ̀”XUh[e”_ZruW_Sa”XdS”TẀV”SZ”cZ̀̂ “ZdS”cTWS”hSW]]”rUW[Yf”z h̀SU”W[“{|}”~dÙb”STWS”ch]]”udS”SZeUSTÙ”STU”VWSW”R̀Zr”STU”H=D796�”SWX]U”chST”STU”�=�D��”W[V”����”SWX]UY”YZ”STWS”bZd”eUS”W”XUSSÙ”hVUWZR”cTZ”̀WSUV”cTh_T”XUÙf”yTU”̀UYd]S”YTZd]V”VhYu]Wb”STU”SWYSÙ\Y”[WrU”�ehsU[“[WrU”Z[]b�a”W]Z[e”chST”STU”[WrU”ZR”STU”XUÙa”hSY”X̀UcÙ”W[V”STUẀSh[ef”g̀VÙ”STU”SWX]U”Xb”STU”SWYSÙY\”[WrUY�”RZ̀”W”ehsU[“SWYSÙa”YZ̀S”h[“VUY_̀UWYh[e”Z̀VÙ”ZR”̀WSh[e”�hfUf”TheTUYS�̀WSUV”XUÙ”Rh̀YS�f�]W_U”bZd̀”~dÙb”h[SZ”W”shUc”VURh[hShZ[“]ĥU”SThY�C��=D�”@�”����=C�”87�O”;��H=D796�LD=�D�����������O����=D796P”�ZSU”STWS”STU”WSS̀hXdSUY”SZ”STU”shUc”VURh[hShZ[Y”Yduu]b”[WrUY”RZ̀”cTWSUsÙ”sW]dUY”WuuUẀ”h[“STU”����CD”_]WdYU”ZR”STU”{|}”~dÙbf”QR”bZd”cW[S”SZSTh[̂”ZR”STU”shUc”WY”W”�sh̀SdW]”SWX]U�a”STU[“STUYU”̀UùUYU[S”STU”[WrUY”ZR”STU”WSS̀hXdSUY”ZR”STWS”SWX]UfzTU[“bZd”h[sẐU”STU”shUca”bZd”YTZd]V”YUU”ZdSudS”STWS”]ZẐY”]ĥU”SThY�”D=�D��”�””””””””””����””””””””””�””””””””””���O��””””””””””�”�=D796″”::::::::�::::::::::::::::::::::::�::::::::::::::::::::::::::�::::::::””;<=>“””�”��<""""""""""""""""""""�"�@@F����"""""""""""""""""�""""""�"";<=>“””�”�7CD@�7=”�7DD��””””””””�”�=��D@9″=9<"�97D�<"""""""�""""""M"";<=>“””�”��O””””””””””””””””””””�”�@@F����”””””””””””””””””�””””””M””?�@AA””�”H�<�=C�""""""""""""""""�"�=D7�<="�=�"���O796""""""�""""""�""?�@AA""�"E=>��”K�I7��”G7���9��””�”�=�D�F@8��”���O���”””””””�””””””�””?�@AA””�”�>�7��”””””””””””””””””�”�=��D@9″=9<"�97D�<"""""""�""""""�""B�CD@�"�"K7���="��8=<="G=��";��"�"K7���="��8=<=""""""""""""�""""""�""B�CD@�"�"�@�D���""""""""""""""""�"�=��D@9"=9<"�97D�<"""""""�""""""�""E�AA"""�"K7���="��8=<="G=��";��"�"K7���="��8=<=""""""""""""�""""""�""E�AA"""�"�I��=6@�=96"�@C�"""""""�"KCF=�����"�7DD��"���O���"�""""""�""E�AA"""�"H=��ID79"""""""""""""""�"�@�DF"�@=�D"���O796""""""�""""""M""E@F9"""�"K7���="��8=<="G=��";��"�"K7���="��8=<=""""""""""""�""""""�""E@F9"""�"�N�:"""""""""""""""""""�"�=��9<@97=9"���O796""""""�""""""�""E@F9"""�"H=��ID79"""""""""""""""�"�@�DF"�@=�D"���O796""""""�""""""�""E@F9"""�"�>�7��”””””””””””””””””�”�=��D@9″=9<"�97D�<"""""""�""""""�""E@F9"""�"�F7>=�”H�<"""""""""""""�"�F7>=�”””””””””””””””””””�””””””�””E@F9″””�”��@O9″�=6��””””””””””””�”�=��D@9″=9<"�97D�<"""""""�"""""" ""E@F9"""�"�7CD@�7="�7DD��""""""""�"�=��D@9"=9<"�97D�<"""""""�""""""M""G�D��""�"¡¡¡¡"""""""""""""""""""�"�=�D��>=79��G���79�””””””�””””””�””H=6FI””�”��<"�7��"""""""""""""""�"��O"?�=�I�"���O796"""""""�""""""�""H=6FI""�"K7���="��8=<="G=��";��"�"K7���="��8=<=""""""""""""�""""""�""H=6FI""�"H=��ID79"""""""""""""""�"�@�DF"�@=�D"���O796""""""�""""""�""H=>�J””�”K7���=”��8=<="G=��";��"�"K7���="��8=<=""""""""""""�""""""�""H=>�J””�”�76A@@D”�=����”¢79�””””�”K7���=”��8=<=""""""""""""�""""""�""H@��"""�"H�<�=C�""""""""""""""""�"�=D7�<="�=�"���O796""""""�""""""�""K=�=F""�"�I��=6@�=96"�@C�"""""""�"KCF=�����"�7DD��"���O���"�""""""�""K=�=F""�"E=>��”K�I7��”;>���”;��”�”�=�D�F@8��”���O���”””””””�””””””�””K=�=F””�”E=>��”K�I7��”G7���9��””�”�=�D�F@8��”���O���”””””””�””””””�””K=�=F””�”��<""""""""""""""""""""�"�@@F����"""""""""""""""""�""""""�""K=�=F""�"KCF=�����"�=6��""""""""�"KCF=�����"�7DD��"���O���"�""""""�""K=�=F""�"��O""""""""""""""""""""�"�@@F����"""""""""""""""""�"""""" ""K=�=F""�"�7CD@�7="�7DD��""""""""�"�=��D@9"=9<"�97D�<"""""""�""""""M"L� "�@O�P"£f"wh[V"ZdS"cTWS"hY"rb"RWsZd̀hSU"XUÙf¤]UẀ]ba"bZd"_W["cZ̀̂ "ZdS"STU"W[YcÙ"SZ"SThY"Z[_U"bZd\sU"YZ]sUV"STU"~dÙb"WXZsUf"¥ZcUsÙa"S̀b"SZ"c̀hSU"W"~dÙb"STWS"̀USd̀[Y"W"Yh[e]U"Sdu]U"chSTSTU"[WrU"ZR"STU"XUÙ�Y�"W[V"X̀UcÙ�Y�"RZ̀"STU"XUÙ�Y�"STWS"¦ZT["{TUuTÙV"̀WSUY"TheTUYSf�]W_U"bZd̀"~dÙb"h[SZ"W"shUc"VURh[hShZ["]ĥU"SThY�C��=D�"@�"����=C�"87�O"E@F9��=8@I�7D�����L���O�������P"zTU["bZd"h[sẐU"STU"shUca"bZd"YTZd]V"YUU"ZdSudS"STWS"]ZẐY"]ĥU"SThY������ !"#$%$&'"§",-./"̈.©+#ª1*.«-)'$¬$$-"5"""""���O��"""""�"""����"""":::::::::::::::�::::::::::""K7���="��8=<="�"G=��";��"LM"�@OP"�¥h[S�"WVWuS"STU"shUc"R̀Zr"STU"ùUshZdY"~dUYShZ["h["VURh[h[e"SThY"[Uc"shUc�f"wh[V"ZdS"W[bZ[U\Y"RWsZd̀hSU"XUÙf
�������� ���
������
�
�
��
�
���
�����
�������������������
����
���
������
�
�
��
�
���
�����
�������������������
���� ���
���� !"#��#$�%�&��'&�("�)*"#$+�� �,&�-,.�")�* ($"/0�!,(�&��'&� �.$((.��*�&(*$1($#�2�3,*�.4�5�+"/6(� .% 4&�% /(�("�7/"%�%� (�$&�8"�/6&�- #",*$(�!��*2�9 4!��5�% /(�("�7/"%�%� (�$&�:+ '6&�- #",*$(��!��*0�"*�3 * �6&�- #",*$(��!��*2�����;,�*$�&�("�+"�(�$&�%",.+�!�� .'"&(�(���& '�� &�(���"/�,&�+�$/�(���#$�%� !"#�0�!,(�%$(��(���/ '��1� /<�+2�=�$1��/ (,* ..4�* $&�&�(���;,�&($"/�>? /�#$�%�+�-$/$($”/&�!��) * ‘�(�*$&�+@>2����� /&%�*$&�>A”>�$/�&( /+ *+�3BC0�!,(�D”&(<*�3BC�)*"#$+�&�-,/1($"/&0�%�$1��1 /�!��,&�+�("�$').�'�/(�&"'�(�$/<�.$7��(�$&2D"&(<*�3BC�-,/1($"/&�1 /�!��+�-$/�+�$/� �/,'!�*�"-�. /<, <�&0�$/1.,+$/<�3BC2�:/�3BC�-,/1($"/�(4)$1 ..4�1"/( $/&� �&$/<.��3BC�;,�*40�$/("%�$1��) * '�(�*&�("�(���-,/1($"/�1 /�!��$/(�*)". (�+0�(�,&�)*"#$+$/<� �) * '�(�*$& !.��;,�*42�EA"(��(� (�3BC�-,/1($"/&�1 /�1"/( $/� /� *!$(* *4&�;,�/1��"-�3BC�&( (�'�/(&0�$/1.,+$/<�,)+ (�&0�&�) * (�+�!4�&�'$F1"."/&2�����*�&,.(�"-�&,1�� �-,/1($"/�$&�(���(���*�&,.(�"-�(���. &(�3BC&( (�'�/(2GH"*�(���- #",*$(��!��*��I ').�0�+�-$/�� �-,/1($"/�%�$1��( 7�&� &�$/),(�(���<$#�/�/ '��"-� �( &(�*�E &� �(�I(�&(*$/ <7����RS989��;KTBU9A�V�JW�:AF�;K>BU9DXA�V�><7KBF�JJ�>:AT@:T9�DY>Z�[(#”�)1!2’# !�+ 1*$�\%�1″%$�4″�) ** +”6]998DV̂�_̀àbc�cd_c̀efggè__hijklmino��������;:D;98:FF89DD���������pppppppppppppppppppppppppppp��q9R�r<@;S�s:>9DN�E@D;8:>B:�GW�8