{"@attributes":{"version":"2.0"},"channel":{"title":"cs2102: Discrete Math","link":"https:\/\/uvacs2102.github.io\/index.xml","description":"Recent content on cs2102: Discrete Math","generator":"Hugo -- gohugo.io","language":"en-us","lastBuildDate":"Sat, 16 Dec 2017 00:00:00 +0000","item":[{"title":"Final Exam Solutions","link":"https:\/\/uvacs2102.github.io\/finalsolutions\/","pubDate":"Sat, 16 Dec 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/finalsolutions\/","description":"<p>Here are some comments on the Final Exam: <a href=\"https:\/\/uvacs2102.github.io\/docs\/finalexam-solutions.pdf\">PDF<\/a> (and the <a href=\"https:\/\/uvacs2102.github.io\/docs\/finaexam.pdf\">Original Exam<\/a>).<\/p>\n\n<p>We hope everyone found the class worthwhile and enlightening. Have a\ngreat break!<\/p>\n"},{"title":"Problem Set Omega Highlights","link":"https:\/\/uvacs2102.github.io\/psomega\/","pubDate":"Tue, 12 Dec 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/psomega\/","description":"<p>Here are some of our favorite <a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">Problem Set &Omega;<\/a> submissions (mostly in no particular order).<\/p>\n\n<p><center>\n<iframe width=\"100%\" height=\"300\" scrolling=\"no\" frameborder=\"no\" src=\"https:\/\/w.soundcloud.com\/player\/?url=https%3A\/\/api.soundcloud.com\/tracks\/365108615&amp;color=%23ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true&amp;visual=true\"><\/iframe><br>\nMax Rifkin\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/VT0IdZrRHd0?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nEvariste Galois Rap<br>\nLindsey Shavers, Danielle Newman, Esther Boachie\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/WBKhCF1Qo8A\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nGalois&rsquo;s life Rapped\n<br>\nMegha Batra, Cathy Chang\n<\/center><\/p>\n\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1CTIa88VLaxBKTWXa4LyntGLLV82HL7m1m1dwwG4rOXs\/edit?usp=sharing\">Beauty of bijection<\/a>, Leo Wang, Caroline Zhao<\/p>\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1saH6taXI6MAglggsTBCCLYPvSoIU4USm\/view\">Learning relations through game of thrones<\/a>, Yaxin Ren<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/O4T5MZCdbNc\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nFun with sets, set operations and sequences\n<br>\nSherry Li\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/m_g3ezbx_Tg\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nRecursive Life\n<br>\nWenjie Liu, Jia Tang, Yuxin Ji\n<\/center><\/p>\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1_5SGdUpWWWq-js8XgRIk3NLLo1mU1r1V\/view\">Choosing the right door (game&rsquo;s code) - for David Bowie fans<\/a>, Samuel McBroom, Saeed Razavi, Jake Smith, James Chen, Daniel Zarco<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/Ybm-3RIXuNw\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nDiffie Hellman key exchange explained\n<br>\nTaylor Rohrich, Cam Lloyd\n<\/center><\/p>\n\n<p><a href=\"https:\/\/tl9jf4.wixsite.com\/discretesoccer\">A great site about soccer skills (approved by Dave and Mohammad)<\/a>, Angel Lam, Neely Egan<\/p>\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/16LC2oqZ0I0pITjHoINLYB1Jc0q7SD5MI\/view?usp=sharing\">Learning number theory through comics<\/a>, Arty Kosolwattana<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/vR-XkUZA3s8\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nLogical Operators, Sets, and Harry Potter\n<br>\nTaylor Rauch\n<\/center><\/p>\n\n<p><a href=\"https:\/\/prezi.com\/view\/2F44nlWiiSMyJAQ0zG4u\/\">Finite state Coca Cola machine<\/a>, Thomas Shust<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/jXZ-ikjxD4E\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nTeaching logical operators to local (UVa) people\n<br>\nStephen Palathingal\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/qgXCegJHbTw\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nProof by contradiction vs. proof by contrapositive\n<br>\nStephanie Tran, Arushi Kumar\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/33twy8-uedk\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nA Discrete Mathematicians Guide to Dating\n<br>\nSarah Lei, Bhavana Channavajjala, Regina Yap\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/kbGnVl53Rm0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nA rap song on state machine\n<br>\nSurbhi Singh, Raghava Pamula, Anoop Sana\n<\/center><\/p>\n\n<p><a href=\"https:\/\/github.com\/stevephan98\/problem-set-omega-F2017\">Playing the game of NIM against computer<\/a>, Steve Phan, Aidan Barnes<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/hnzeV9DSLf4\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nInduction Rocks\n<br>\nSelwyn Hector\n<\/center><\/p>\n\n<p><a href=\"https:\/\/siddharthghatti.wixsite.com\/cs2102problemseto\">Project Name<\/a>, Siddharth Ghatti<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/BykrsRaovRU\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nJim, the farmer, learns logical operators\n<br>\nReeya Rabena\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/H0Kuhc61y0g\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\n007 using WOP\n<br>\nRahat Maini, Sean Wolfe, John Watkins\n<\/center><\/p>\n\n<p><a href=\"https:\/\/cryptosystems.surge.sh\/\">Symmetric Key vs. Asymetric Key Encryption<\/a>, Renee Mitchell<\/p>\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1yscvglzotYLUsXvUt-7yShMkzZ69sMit\/view\">Song (Havana) about logical operations<\/a>, Peter Tran, Tiffany Nguyen, Jazlene Guevarra, Victor Shen<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/jSAjrxhY0v0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nRole of Induction in Star Wars\n<br>\nPhillip LeMaster\n<\/center><\/p>\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/11qFfXoF44Rp9yAeHtM_Ud_upUvYh4cjQ\/view\">Binary operations for UVa students<\/a>, Nitika Kataria, Vivian Pham<\/p>\n\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1mI2ww8tQrMuvsnUOB7qnV2h2VKY33bqibppCFENzCyg\/edit?usp=sharing\">Cooking cardinality<\/a>, Nick Van Dyke, Trey Nicholls<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/_zUMVNTQicc\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nRap about Logical expressions\n<br>\nNeha Chopra, Sanjana Hajela, Kajal Sheth\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/YdQ-hgqVWyY\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nExplaining discrete math over Thanksgiving dinner\n<br>\nMatthew Jordan\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/lpS6KJ_-M5k\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nBeethoven knew discrete math.\n<br>\nMakonnen Makonnen\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/E6QleDw2GAM\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nLogical operators animated\n<br>\nMatthew Han\n<\/center><\/p>\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/15aFlT_NJJ-BtdoTe_DWv0YdtAdo0Zoaj\/view\">Learning discrete math through basketball<\/a>, Mick O&rsquo;Hanlon<\/p>\n\n<p><a href=\"https:\/\/imgur.com\/gallery\/vgWzv\">The dude from discrete math learns about induction<\/a>, Michael Wood<\/p>\n\n<p><a href=\"http:\/\/gsrca.de\/145864\">Defending earth using discrete intelligence!<\/a>, Matthew Cockrell<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/S6_I2IyfN3U\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe>\n<br>\nWell Ordering Principle vs. WOP\n<br>\nMeghan Tonner\n<\/center><\/p>\n\n<p><a href=\"https:\/\/cpgeier.github.io\/BinaryRelation\/\">Binary Relations: An Interactive Diagram<\/a>, Christopher Geier, Hamza Ilzyas<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/vIPbHedxaH8?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nSets using the Animal Kingdom<br>\nCharles &ldquo;Michael&rdquo; Chang\n<\/center><\/p>\n\n<p><a\nhref=\"https:\/\/docs.google.com\/presentation\/d\/1_fZP0gW8koGsGIVbpTICh0z6qFEa9U2v3Z_e-8fe1c0\/\"><em>If\nI had a Proof<\/em> (A Song about Proofs and the Wizard of Oz)<\/a>, Avery Burton.<\/p>\n\n<p><a href=\"https:\/\/anniesharkeycs2102.weebly.com\/\"><em>Alice in LogicalOperatorLand<\/em><\/a>, Annie Sharkey.<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/6Js87ft5GKk?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nWell-Ordering Principle is Hard<br>\nDevin Kim\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/d4r_oX1AV_c\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nThe Story of Goldilocks and the Three (Boolean) Bears<br>\nArjun Iyer, Abhishek Shinde, Chiraag Umesh, Vineeth Gaddam\n<\/center><\/p>\n\n<p><center>\n<iframe id=\"iframe_container\" frameborder=\"0\" webkitallowfullscreen=\"\" mozallowfullscreen=\"\" allowfullscreen=\"\" width=\"550\" height=\"400\" src=\"https:\/\/prezi.com\/embed\/00qnugubzfmv\/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0&amp;landing_data=bHVZZmNaNDBIWnNjdEVENDRhZDFNZGNIUE1UMXYwb1FkblhtOXJVaVkzakpMWUlIdmpKVFVDNTBCdFVteFMxTUVPQT0&amp;landing_sign=dRj1td8nhgGo8IwM4chp_ee7fyb8iyrX6SwahHZVEaI\"><\/iframe><br>\nLogical Operators for Kids!<br>\nCory Ayers, Peter Worcester\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/XPp2BZdNjuw?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nSuper Mario Sunshine and Sets<br>\nElizabeth Henning\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/1JMJ71MbHsQ?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nWell-Ordering Mystery<br>\nEimara Mirza\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/83plYG3Ew08\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nWell-Ordering Principle (in terms of Food)<br>\nEmily Zou\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/lqRk7t-HFqw?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nDiscrete Math in Everyday Life<br>\nFranklin Amaya and Aiden Smith\n<\/center><\/p>\n\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1NWvhZmvyyiKJt5X1bpT75-bkroHDtchznWn0rF0txQI\/\">Handsome squidward (as a state machine)<\/a>, Gia-Han Nguyen<\/p>\n\n<p><a\nhref=\"https:\/\/drive.google.com\/file\/d\/1a7p3yBr8FKF28xZEWNGiEeJoONDJAEd2\/view\">Proven:\nA Murder Mystery<\/a> (Galois Musical!), Jared Taylor<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/wCxYlllEBto?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><Br>\nThe Infinite Dorm: The Ordering of Countably Infinite Sets EXPLAINED<br>\nGrace Wu, Sandy Gould, Kelly Xie, Helen Lin, Ryan Yi, Ruolin Chen\n<\/center><\/p>\n\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1Bc8a9l8MKLeLbva5oTxI-9l9xmV3GD4yMhALtv2xV-s\/\">Logical Operators: A guide for current and\nprospective Feline owners<\/a>, Helen Lim, Angelica Lavan<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/p0z8Yw8S5E0?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nHopscotch State Macine<br>\nKelly McKee\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/B0dVd2xCmq8?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nLogical Operators in the Constitution<br>\nHabib Karaky, Kunal Chandak, Rishabh Nagpal, Shivani Saboo\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/geBYVDUAPKo?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nState Machines<br>\nIsabel Kershner, Emily Roberts\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/d-fYrCaiaCA?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nSet Relations<br>\nIsaac Roberts, Siddhant Goel\n<\/center><\/p>\n\n<p><a href=\"https:\/\/www.docdroid.net\/ZvKtUo3\/cs-optional-problem-set.pdf\">Stall Seat Journal<\/s>, Jessica Kain<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/_eWIqimX_E8?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nDiscrete Mario<br>\nJames Hamil\n<\/center><\/p>\n\n<p><a href=\"https:\/\/prezi.com\/view\/U0W0WspCSReEcqzOCuF9\/\">Finite State Machines<\/a>, Jack Workman<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/-kDoen8_Ta8?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nRock Paper Scissors State Machines<br>\nJuan Palacio, Halsing Nordin\n<\/center><\/p>\n\n<p><a href=\"https:\/\/docs.google.com\/document\/d\/1mWD8XjPvH1gkYj9Cvt9mvZ5qxyiHeNsjz18SPqZyC-w\/\"><em>The Fault in the Math: John Green and Infinity<\/em><\/a>, Joseph Kim<\/p>\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1mMMzeSHmFSkr8AeBMpE3MNDZ_Pcxg1Si\/view\">Rosie Learns Recursion<\/a>, Jillian DeWoody<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/yhGlQeqzjXw?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nBoolean Operators<br>\nJohn Perez\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/gdiCL4kzdC0?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nRecursive Radio<br>\nMarcha Kiatrungrit, Cal Ries\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/EMp9v2fJlD0?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nBasketball and State Machine<Br>\nTerry\n<\/center><\/p>\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1WOF159Bq-M-rpTs0025D07KmKaNtW6hD\/view\">Cartesian Products<\/a>, Kelsey Irwin<\/p>\n\n<p><center>\n<iframe id=\"iframe_container\" frameborder=\"0\" webkitallowfullscreen=\"\" mozallowfullscreen=\"\" allowfullscreen=\"\" width=\"550\" height=\"400\" src=\"https:\/\/prezi.com\/embed\/taigpu2oxyj8\/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0&amp;landing_data=bHVZZmNaNDBIWnNjdEVENDRhZDFNZGNIUE1UMXYwb1FkblhtOXJVaVkzalB6TW11ZWxoS0k4elM1N3VFRGw5UWd0Yz0&amp;landing_sign=TavQykd5PoBeYwBQAoYyO3J2PicF_MGGRHS-Dri3QtA\"><\/iframe><br>\nInference Rules: A Guide to Soundness<br>\nCarl Zhang, Peter Felland\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/IL8iUZ533iE?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nRelations and Music<br>\nDaniel Seymour\n<\/center><\/p>\n\n<p><a\nhref=\"https:\/\/docs.google.com\/presentation\/d\/1zOonRSw-pRbs-NPkwJCl1xCygsEtyxZxKKzPcSEysvs\/edit?usp=sharing\">Discrete\nMath Jeopardy<\/a>, Anna Davis, Lavonte Brown<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/sU6X-d16wlg?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nLieutenant Confusion<Br>\nAndrew Zhang\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/rez3J2wtLXA?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nRecursive Hershey Bars<br>\nBailey Snead\n<\/center><\/p>\n\n<p><a href=\"https:\/\/cs2102chessapp.herokuapp.com\/\">Chess App<\/a>, Branden Kim, Shirley Wang<\/p>\n\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1fUYkh66hd1wzdiaZmN0wgi8f-QrZmP9EdkGFqzUpRnw\/\">Escaping the Monster, by induction!\n<\/a>, Joseph Park, Conner Hutson, Jared Tufts<\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/lbM91fuLpwY?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nTrump-Putin Key Exchange<br>\nCarter McGhee\n<\/center><\/p>\n\n<p><center>\n<iframe src=\"https:\/\/player.vimeo.com\/video\/245800003\" width=\"640\" height=\"360\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe><br>\nA Guide to Writing Proofs for Discrete Math<br>\nKaelyn Carroll, Joshua You\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/pzEhVw2Rf7U?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nA Night On the Corner State Machine<br>\nKristina Colevas\n<\/center><\/p>\n\n<p><center>\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/pMGaj3-6Ppk?rel=0\" frameborder=\"0\" gesture=\"media\" allow=\"encrypted-media\" allowfullscreen><\/iframe><br>\nRelatable State Machines<br>\nLuke Emanuel, William Tonks\n<\/center><\/p>\n"},{"title":"Class 27: Conclusion","link":"https:\/\/uvacs2102.github.io\/class27\/","pubDate":"Tue, 05 Dec 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/class27\/","description":"\n\n<h1 id=\"schedule\">Schedule<\/h1>\n\n<p>The <strong>Final Exam<\/strong> is this Thursday, 7 December, 9am-noon in the\nnormal classroom.  See <a href=\"https:\/\/uvacs2102.github.io\/finalprep\">Final Exam Preparation<\/a> for advice\non preparing for the final.<\/p>\n\n<p>Prof. Evans will have his usual office hours tomorrow (2:30-3:30pm),\nand most of the TA office hours schedule for Wednesday will be held\n(but check the Slack group for any updates since some TAs may not be\nable to hold office hours tomorrow).<\/p>\n\n<p><center>\n<script async class=\"speakerdeck-embed\" data-id=\"761611cf8ece4f74a52a3b71ec9c0ff1\" data-ratio=\"1.77777777777778\" src=\"\/\/speakerdeck.com\/assets\/embed.js\"><\/script>\n   <\/center><\/p>\n\n<p>More of the <a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">PS &Omega;<\/a> submissions will be posted on\nthe course site later.<\/p>\n"},{"title":"Problem Set 9 Comments","link":"https:\/\/uvacs2102.github.io\/ps9comments\/","pubDate":"Sat, 02 Dec 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/ps9comments\/","description":"<p>The Problem Set 9 solutions and comments are now posted in collab: <a href=\"https:\/\/collab.its.virginia.edu\/access\/content\/group\/9bd99d1c-6f18-4542-a7d1-8ffc4fccbd3d\/ps9solutions.pdf\">PDF<\/a><\/p>\n"},{"title":"Final Exam Preparation","link":"https:\/\/uvacs2102.github.io\/finalprep\/","pubDate":"Fri, 01 Dec 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/finalprep\/","description":"\n\n<p>The <em>Final Exam<\/em> will be Thursday, 7 December, 9am-noon in the normal\nclassroom.<\/p>\n\n<p>The final will cover everything in the course, with an emphasis on the\nmost important concepts that have appeared in at least two places.<\/p>\n\n<p>Most of the questions on the final will be small variations on\nproblems you have already seen on previous exams or problem\nsets. Doing well on these questions will make a strong case for\nearning at least a B in the class.  A few of the problems will be\ndesigned to see how well you can use concepts you have learned in the\nclass to solve problems unlike ones you have already seen.  Doing well\non many of these questions will make a strong case for earning an A in\nthe class. (Of course, we will also take into account your performance\non other parts of the class including the exams and problem sets.)<\/p>\n\n<p>The format will be fairly similar to Exam 1 and Exam 2, but because of\nthe extended time for the final, and the desire to give as much\nopportunity as possible for students to demonstrate what you can do,\nwill be a bit longer than those exams.<\/p>\n\n<p>As with Exam 1 and Exam 2, you will be permitted to use a <strong>single\npaper page of notes that you prepare and bring to the exam<\/strong>, but no\nother resources.  It is fine to collaborate with others to prepare\nyour notes.  The page should be no larger than a US Letter size page\n(8.5 x 11 inches), and you may write (or print) on both sides\nof the page.<\/p>\n\n<h2 id=\"expected-problems\">Expected Problems<\/h2>\n\n<p>Although the exam covers the whole class, you should not be surprised\nif it includes problems for you to demonstrate:<\/p>\n\n<ul>\n<li><p>Your understanding of <strong>logical formulas<\/strong>, <strong>inference rules<\/strong>, and\nan ability to reason about and manipulate formulas using\n<strong>quantifiers<\/strong>.<\/p><\/li>\n\n<li><p>Your fluency with standard proof techniques including\n<strong>proof-by-contradiction<\/strong>.<\/p><\/li>\n\n<li><p>Your understanding of <strong>well-ordering<\/strong> and how to construct proofs\nusing the <strong>well ordering principle<\/strong>.<\/p><\/li>\n\n<li><p>Your understanding of <strong>sets<\/strong>, how the set operators are defined,\nand what they mean.<\/p><\/li>\n\n<li><p>That you can do a <strong>regular induction<\/strong> proof similar to ones you\nhave seen on previous exams <em>very well<\/em>.  That you can do an\ninduction proof that requires some creativity to <strong>define a good\ninduction predicate<\/strong> and then to complete the proof.<\/p><\/li>\n\n<li><p>Your understanding of <strong>state machines<\/strong>, and ability to use the\n<strong>invariant principle<\/strong> to prove a property of the reachable states\nfor a given state machine.<\/p><\/li>\n\n<li><p>Your understanding of <strong>recursive data types<\/strong>, ability to define\nfunctions on recursive data types, and to use <strong>structural\ninduction<\/strong> to prove a property about all objects of a recursive\ndata type.<\/p><\/li>\n\n<li><p>Your understanding of infinite cardinalities including the ability\nto determine if a set is <strong>countable<\/strong> or <strong>uncountable<\/strong>, and to\nsupport your answer with a convincing proof.<\/p><\/li>\n\n<li><p>Your understanding of <strong>number theory<\/strong>, including the ability to\nreason about properties of prime and composite numbers, Abelian\ngroups and fields.<\/p><\/li>\n<\/ul>\n\n<h2 id=\"practice-exam\">Practice Exam<\/h2>\n\n<p>The exam from last year&rsquo;s course is available here:\n[<a href=\"https:\/\/uvacs2102.github.io\/docs\/practicefinal.pdf\">PDF<\/a>].  All of the questions from last\nyear&rsquo;s final would be reasonable questions for this year&rsquo;s final\nexcept for 6d (we did not cover Turing machines this year) and\n12. Last year&rsquo;s final doesn&rsquo;t include any questions on number theory\nsince we didn&rsquo;t cover that enough last year, but your final is likely\nto include a few number theory questions that you will be\nwell-prepared for if you understand PS9. Otherwise, the content and\nformat of this final is similar to what you should expect on your\nfinal.<\/p>\n\n<p>You are strongly encouraged to try to solve the problems yourself,\nbefore consulting the <a href=\"https:\/\/uvacs2102.github.io\/docs\/practicefinalsolutions.pdf\">Practice Final\nSolutions<\/a>.<\/p>\n"},{"title":"Problem Set Omega Submission","link":"https:\/\/uvacs2102.github.io\/psosubmit\/","pubDate":"Fri, 01 Dec 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/psosubmit\/","description":"<p>The submission form for <a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">Problem Set &Omega;<\/a> is here:\n<center>\n<a href=\"https:\/\/goo.gl\/forms\/Vrd2IOOLuDgbItJG3\">Problem Set Omega Submission Form<\/a>.\n<\/center><\/p>\n\n<p>Submissions are due on <strong>Monday, 4 December<\/strong> at <strong>11:59pm<\/strong>.  If you\nwould like to present something in class on Tuesday, 5 December,\nplease send your request (see <a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">the problem set page<\/a> for\ndetails) by <strong>5:559pm<\/strong> on <strong>Monday, 4 December<\/strong>.<\/p>\n"},{"title":"Class 26: Counting and Probability","link":"https:\/\/uvacs2102.github.io\/class26\/","pubDate":"Thu, 30 Nov 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/class26\/","description":"\n\n<div class=\"notpdf\">\n\n   <center>\n<script async class=\"speakerdeck-embed\" data-id=\"3960811cc5044e19932d697d908555a7\" data-ratio=\"1.77777777777778\" src=\"\/\/speakerdeck.com\/assets\/embed.js\"><\/script>\n   <\/center>\n <\/div><!--endpdf-->\n\n   <div class=\"highlightm\">\n   <a href=\"https:\/\/uvacs2102.github.io\/docs\/class26.pdf\">See PDF Version for <b>Notes<\/b><\/a>.\n   <\/div>\n   \n\n<p><\/div><!--endpdf--><\/p>\n\n<p><div class=\"latex\"><\/p>\n\n<h1 id=\"recall\">Recall<\/h1>\n\n<p>Last time, we went tover two basic counting problems. In both problems, we counted how many ways we can choose $k$ elements from ${1,\\dots,n}$ whe the order of selection does matter; namely, we counted \\emph{sequences} of length $k$. If repetition was allowed, the answer was $n^k$ (using the product rule) and if the repetition was not allowed, the answer was $n (n-1) \\dots (n-k+1) = n!\/(n-k)!$ using the generalized product rule.<\/p>\n\n<p>Today, we will focus on a similar counting problem but in a scenario in which order does not matter. Before that, let&rsquo;s recall the division rule.<\/p>\n\n<p><strong>Division Rule<\/strong>. If $f \\colon A \\to B$ is a $k$ to $1$ (total surjective) function, and if $A,B$ are finite sets then, $|A| = k \\cdot |B|$.<\/p>\n\n<h1 id=\"counting-when-order-does-not-matter\">Counting  when order does not matter<\/h1>\n\n<p>The number of subsets of size $k$ of  ${1,\\dots,n}$ captures a counting problem in which the order of the $k$\n selected elements does not matter. This is denoted by ${n \\choose k}$ and as we show, is equal to ${n \\choose k} = \\frac{n!}{k! (n-k)!}$.<\/p>\n\n<p>The proof uses the division rule. Suppose $S_k$ is the set of all subsets of ${1,\\dots,n}$ of size $k$ and let $T_k$ be the set of all \\emph{sequences} of length $k$ using ${1,\\dots,n}$ (where repetition is not allowed). As we saw before, we know that $|T_k|=n!\/(n-k)!$. Now, we show a $\\ell$-to-1 mapping from $T_k$ to $S_k$, for $\\ell=k!$ which, by the division rule will imply that $|S_k|=\\frac{n!\/(n-k)!}{k!} = \\frac{n!}{(n-k)! k!}$.<\/p>\n\n<p>$\\ell$-to-1 mapping from $T_k$ to $S_k$: Map any sequence $(a_1,\\dots,a_k)$ to the set ${a_1,\\dots,a_k}$. First note taht this is a total surjective function from $T_k$ to $S_k$. Furthermore, for any set $A={a_1,\\dots,a_k}$ there are $k!$ permutations like $(b_1,\\dots,b_k)$ of the same set $A$ (we proved that already!). Therefore, the mapping is $\\ell$-to-1 for $\\ell=k!$.<\/p>\n\n<p><strong>when repetition is allowed<\/strong>. Note that in the problem above, we cannot select the same element $i$ from ${1,\\dots,n}$ more than once, but suppose we consider the selections to be &ldquo;multi-sets&rdquo; where the order of elements do not matter, but they could be selected more than once. This is a way to model the  example problem from last class about donuts.<\/p>\n\n<p>Give a bijection between the sets that model the following two counting problems:\n\\begin{itemize}\n\\item Selecting $k$ elements from  ${1,\\dots,n}$ as a &ldquo;multi-set&rdquo;; namely, the order of selection does not matter, but we \\emph{can} select an element more than once.\n\\item Number of sequences using elements from ${0,1}$ with exactly $k$ ones, and exaclty $n-1$ zeros.\n\\end{itemize}<\/p>\n\n<p>Using the above bijection, show that selecting $k$ donuts frm $n$ different varieties is possible in a total of ${n+k-1 \\choose n-1}$ many ways.<\/p>\n\n<p>#<\/p>\n\n<h2 id=\"basics-of-probability\">Basics of Probability<\/h2>\n\n<p>Probability theory is one of the richest and most beautiful mathematical theories with enormous applications. Here we take a very brief look at it, by using our counting techniques for estimating the &ldquo;chance&rdquo; of certaing &ldquo;outcomes&rdquo;.<\/p>\n\n<p>Some of the basic questions we deal with in probability theory look like the following examples.\n\\begin{itemize}\n\\item Suppose a bag contains $10$ donuts and $5$ bagles. If we pick one of the items in the bad \\emph{uniformly} (at random), what is the \\emph{probability} that we pick a bagel.\n\\item Suppose we do not put back the item that we selected in the previous example. Now, if we take another item, what is the chance that it is a donut \\emph{conditioned} on the first item being a bagel?\n\\end{itemize}<\/p>\n\n<h1 id=\"sample-space-and-event\">Sample Space and Event<\/h1>\n\n<p>The sample space $\\Omega=  {x_1,\\dots,x_n }$ includes all the possible outcomes and their own specific probability $\\Pr[x<em>i]$, while the total summation is $1=\\sum<\/em>{x\\in \\Omega} \\Pr[x<em>i]$. An Event $E$ is simply a subset of the sample space $E \\subseteq \\Omega$, and its probability is defined to be $\\Pr[E] = \\sum<\/em>{x \\in E} \\Pr[x]$.<\/p>\n\n<p>When we draw one item from a bag of  $10$ donuts and $5$ bagles:\n\\begin{itemize}\n\\item What is the sample space?\n\\item What is the probabilty of each outcome?\n\\item What is the Event $B$ that we draw a bagel?\n\\item What is the probability of $B$?\n\\end{itemize}<\/p>\n\n<h1 id=\"conditional-probability\">Conditional Probability<\/h1>\n\n<p>For two events $E,C$, the probability of $E$ hapenning \\emph{conditioned} on $C$ happenin is denoted by $\\Pr[E \\mid C]$ and equal to\n$$\\Pr[E \\mid C] = \\frac{\\Pr[E \\cap C]}{\\Pr[C]}.$$<\/p>\n\n<p>For example, for any non-empty $E$, we have $\\Pr[E \\mid E] = 1$, and for any disjoint events $E,C$ we have $\\Pr[E \\mid C]=0$.<\/p>\n\n<p>What is the probability space of taking two items (without repetition) from the same basket of  $10$ donuts and $5$ bagles? What is the formal definition of the event $B$ that the first item is a bagel? What is the formal definition of the event $D$ that the second item is a donut? What is the probability of $D$ conditioned on $B$?<\/p>\n\n<p><\/div><\/p>\n"},{"title":"Class 25: Counting","link":"https:\/\/uvacs2102.github.io\/class25\/","pubDate":"Tue, 28 Nov 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/class25\/","description":"\n\n<h3 id=\"schedule\">Schedule<\/h3>\n\n<p>Reminder for the schedule for the rest of the semester:<\/p>\n\n<ul>\n<li><strong><a href=\"https:\/\/uvacs2102.github.io\/ps\/ps9\">Problem Set 9<\/a><\/strong>: due on Friday, 1 December at 6:29pm.<\/li>\n<li><strong><a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">Problem Set Omega<\/a><\/strong>: due on Monday, 4 December at 11:59pm. See the <a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">Problem Set Omega<\/a> description for examples from previous students.<\/li>\n<li><strong>Final Exam<\/strong>: Thursday, 7 December, 9am-noon (in the normal lecture room)<\/li>\n<\/ul>\n\n<p>Most of today&rsquo;s class is covered in Chapter 15 of the MCS book.<\/p>\n\n<p><div class=\"notpdf\"><\/p>\n\n<p><center>\n<script async class=\"speakerdeck-embed\" data-id=\"8f28ff2b235b497ea3b961d81bb051db\" data-ratio=\"1.77777777777778\" src=\"\/\/speakerdeck.com\/assets\/embed.js\"><\/script>\n   <\/center><\/p>\n\n<p><\/center>\n <\/div><!--endpdf--><\/p>\n\n<p><div class=\"highlightm\">\n   <a href=\"https:\/\/uvacs2102.github.io\/docs\/class25.pdf\">See PDF Version for <b>Notes<\/b><\/a>.\n   <\/div><\/p>\n\n<p><\/div><!--endpdf--><\/p>\n\n<p><div class=\"latex\"><\/p>\n\n<h1 id=\"examples\">Examples<\/h1>\n\n<p>Today, we want to be able to answer the following questions. The first two are already discussed in class, but we will study them more generally.\n\\begin{enumerate}\n\\item How many subsets does $S$ have if $|S|=n$?\n\\item How many numbers are there that can be represented with (at most) $n$ bits (in base 2) ?\n\\item How many (at most) 16-bit numbers with exactly 4 ones?\n\\item How many ways to choose 12 doughnuts from 5 varieties?\n\\end{enumerate}<\/p>\n\n<p>The first two questions have the same answer: $2^n$. In fact, because\nthere is a bijection between the sets described in problem 1 and\nproblem 2, then we already know that their answers must be the\nsame.<\/p>\n\n<p>More generally, all counting problems of today&rsquo;s class could be\ndescribed as &ldquo;what is the size of a set $A$?&rdquo; We use the definition of\nfinite cardinality from Class 9, to study these questions. Namely, we\ntry to find another set $B$ whose cardinality is known, and that there\nis a bijection between $A$ and $B$.<\/p>\n\n<h1 id=\"why-counting\">Why Counting?<\/h1>\n\n<p>Being able to count (exactly or even approximately) is important for many reasons, some of which are:\n\\begin{itemize}\n\\item Estimating the &ldquo;cost&rdquo; of an algorithm, this could be time, space, etc. This comes up when we try to analyze the &ldquo;efficiency&rdquo; of an algorithm.\n\\item Estimating the &ldquo;security&rdquo; of a cryptographic algorithm. Basically, we would like to know how big is the &ldquo;space of keys&rdquo; from which the adversary has to &ldquo;guess&rdquo; the correct one.\n\\item Counting is the fundamental to probability theory.\n\\end{itemize}<\/p>\n\n<h1 id=\"counting-rules\">Counting Rules<\/h1>\n\n<p><strong>Product Rule<\/strong> If $A_1,\\dots,A_n$ are finite sets, then the size of their cartesian product is\n$$|A_1 \\times \\dots \\times A_n| = |A_1| \\cdot |A_2| \\dots |A_n| $$<\/p>\n\n<p>We previously saw this rule in Class 7, but we will use it more heavily today, and we will see some extensions of it.<\/p>\n\n<p>Using the product rule, formally prove that the answer to the first two example problems are both $2^n$. (Hint, let $S={a_1,\\dots,a_n}$ and let $A_i = {a_i,0}$.)<\/p>\n\n<p>#\n#\n#<\/p>\n\n<p><strong>Sum Rule<\/strong>. If $A_1,\\dots,A_n$ are finite \\emph{disjoint} sets, then the size of their \\emph{union} is\n$$|A_1 \\cup \\dots \\cup A_n| = |A_1| + |A_2| \\dots +|A_n|.$$<\/p>\n\n<p>The sum rule is even simpler than the product rule, but together with\nthe product rule, they become very powerful.<\/p>\n\n<p>Using the product and sum rules, count how many passwords of 6 to 8\ncharacters exist if the first character can be an english letter\n(upper or lower case, so $26 \\times 2$ possibilities) and the rest of\nthe characters are either a letter or digit ($(26 \\times 2) + 10$\npossibilities).<\/p>\n\n<p>#<\/p>\n\n<p><strong>Generalized product rule.<\/strong> Suppose $S$ is a set containing length-$k$ sequences like $(a_1,\\dots,a_k)$. If there are $n_i$ possibilities for $i^{\\text th}$ entry $a_i$ for any possible prefix $a<em>1,\\dots,a<\/em>{i-1}$, then  $|S|=n_1 \\cdot n_2 \\dots n_k$.<\/p>\n\n<p>Using the generalizd product rule, prove that the number of permutations over any set $S={s_1,\\dots,s_n}$ is $n!$. A permutation is simply a sequence $(a_1,\\dots,a_n)$ where each $s_i$ appears in that sequence exactly once.<\/p>\n\n<p>#\n#\n#<\/p>\n\n<p><strong>Division Rule<\/strong>. If $f \\colon A \\to B$ is a $k$ to $1$ (total surjective) function, and if $A,B$ are finite sets then, $|A| = k \\cdot |B|$.<\/p>\n\n<h1 id=\"counting-when-order-does-not-matter\">Counting when order does not matter<\/h1>\n\n<p>The number of subsets of size $k$ of  ${1,\\dots,n}$ captures a counting problem in which the order of the $k$\n selected elements does not matter. This number is so important that has its own notation ${n \\choose k}$.<\/p>\n\n<p>Using the division rule, prove that ${n \\choose k} = \\frac{n!}{k! (n-k)!}$\n <\/div><\/p>\n"},{"title":"Class 24: Return of ROCA","link":"https:\/\/uvacs2102.github.io\/class24\/","pubDate":"Tue, 21 Nov 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/class24\/","description":"\n\n<h3 id=\"schedule\">Schedule<\/h3>\n\n<p>Happy Thanksgiving!  (There is no class on Thursday.)<\/p>\n\n<p>Here&rsquo;s the updated (and final) schedule for the rest of the semester:<\/p>\n\n<ul>\n<li><strong><a href=\"https:\/\/uvacs2102.github.io\/ps\/ps9\">Problem Set 9<\/a><\/strong>: due on Friday, 1 December at 6:29pm.<\/li>\n<li><strong><a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">Problem Set &omega;<\/a><\/strong> (this is optional, and not like the others, hence it uncountable number): due on Monday, 4 December at 11:59pm. See the <a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">Problem Set &omega;<\/a> description for examples from previous students.<\/li>\n<li><strong>Final Exam<\/strong>: Thursday, 7 December, 9am-noon (in the normal lecture room)<\/li>\n<\/ul>\n\n<p><div class=\"notpdf\"><\/p>\n\n<h2 id=\"links\">Links<\/h2>\n\n<p>Ron Rivest, Adi Shamir, and Leonard Adleman. <a href=\"https:\/\/people.csail.mit.edu\/rivest\/Rsapaper.pdf\"><em>A Method for Obtaining Digital Signatures and Public-Key Cryptosystems<\/em><\/a>, 1977.<\/p>\n\n<p><a href=\"https:\/\/crocs.fi.muni.cz\/public\/papers\/rsa_ccs17\">ROCA Attack<\/a>: <a href=\"https:\/\/crocs.fi.muni.cz\/_media\/public\/papers\/nemec_roca_ccs17_preprint.pdf\">Paper PDF<\/a>, <a href=\"https:\/\/crocs.fi.muni.cz\/_media\/public\/papers\/ccs-nemec-handout.pdf\">Slides<\/a><\/p>\n\n<p><center>\n<script async class=\"speakerdeck-embed\" data-id=\"dac618e6455c425fbacdcc40ee858f9b\" data-ratio=\"1.77777777777778\" src=\"\/\/speakerdeck.com\/assets\/embed.js\"><\/script>\n   <\/center><\/p>\n\n<!--   <div class=\"highlightm\">\n   <a href=\"https:\/\/uvacs2102.github.io\/docs\/class23.pdf\">See PDF Version for <b>Notes and Questions<\/b><\/a>.\n   <\/div>\n-->\n\n<p><\/div><!--endpdf-->\n   <div class=\"latex\">\n   <\/div><\/p>\n"},{"title":"Problem Set 9","link":"https:\/\/uvacs2102.github.io\/ps9posted\/","pubDate":"Sun, 19 Nov 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/ps9posted\/","description":"<p><a href=\"https:\/\/uvacs2102.github.io\/ps\/ps9\"><strong>Problem Set 9<\/strong><\/a> [<a href=\"https:\/\/uvacs2102.github.io\/docs\/ps9.pdf\">PDF<\/a>] is now posted and\nis due <strong>Friday, 1 Dec at 6:29:00pm<\/strong>. Please read the\ncollaboration policy carefully.<\/p>\n"},{"title":"Problem Set 9","link":"https:\/\/uvacs2102.github.io\/ps\/ps9\/","pubDate":"Sun, 19 Nov 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/ps\/ps9\/","description":"\n\n<div class=\"latex\">\n   \\dbox{{\\bf Deliverable:} Submit your responses as a\nsingle, readable PDF file on the collab site before {\\bf 6:29pm} on {\\bf\n   Friday, 1 December}.}\n   <\/div>\n\n<p><div class=\"notpdf\">\n   <div class=\"highlightr\">\n   <strong>Deliverable:<\/strong> Submit your responses as a\nsingle, readable PDF file on the collab site before <strong>6:29pm<\/strong> on\n   <strong>Friday, 1 December<\/strong>.\n   <\/div>\n   <\/div><!--endpdf--><\/p>\n\n<p><em>Version:<\/em> updated 21 November 2017 (just fixing typos, cosmetic changes, and added $\\star$ for problem 9).<\/p>\n\n<h3 id=\"collaboration-policy-collaboration-policy-identical-to-ps5\">Collaboration Policy - Collaboration Policy (identical to PS5)<\/h3>\n\n<p>For this assignment, you may work in groups of one to three students\nto write-up a solution together.  If you work with teammates, exactly\none of you should submit one assignment that represents your\ncollective best work with all of your names and UVA ids clearly marked\non it.  <em>Everyone on a team should understand everything you\nturn in for the assignment well enough to be able to produce it\ncompletely on your own.<\/em> All teammates must review the submissions\nbefore it is submitted to make sure you understand everything on it\nand that your name and UVA id are clearly marked on it.<\/p>\n\n<h2 id=\"preparation\">Preparation<\/h2>\n\n<p>This problem set focuses on number theory &mdash; Chapter 9 of the MCS book,\nand <a href=\"https:\/\/uvacs2102.github.io\/class20\">Classes 20<\/a>, <a href=\"https:\/\/uvacs2102.github.io\/class22\">22<\/a>, and <a href=\"https:\/\/uvacs2102.github.io\/class23\">23<\/a>.<\/p>\n\n<p><div class=\"notpdf\"><\/p>\n\n<p><div class=\"highlightm\">\n    <a href=\"https:\/\/uvacs2102.github.io\/docs\/ps9.pdf\">Download PDF for Problems<\/a>.\n   <\/div><\/p>\n\n<p><div class=\"highlightr\">\nYour response should be submitted as a single PDF file using collab.  Please read and follow the <a href=\"https:\/\/uvacs2102.github.io\/pdfs\/\">Generating PDFs<\/a> advice on the course site.\n   <\/div><\/p>\n\n<p><\/div><!--endpdf--><\/p>\n\n<p><div class=\"latex\"><\/p>\n\n<h2 id=\"directions\">Directions<\/h2>\n\n<p>Solve all the 9 problems.  Your answers should be clear, consise, and convincing.<\/p>\n\n<h3 id=\"wily-theorem\">Wily Theorem<\/h3>\n\n<ol>\n<li><p>Fermat&rsquo;s last theorem, proved by Andrew Wiles in 1994, states that: for any natural $n&gt;2$ there are \\emph{no} natural numbers $a,b,c$ such that\n$$ a^n + b^n = c^n.$$\nAssuming Fermat&rsquo;s theorem, give a simple proof that $\\sqrt[n]{2}$ is \\emph{not} a rational number.<\/p>\n\n<p>(Hint: you can also give a dirct proof that does not use the Fermat&rsquo;s last theorem, but note that you then might loose the joy of proving a corollary to Fermat&rsquo;s theorem :)<\/p><\/li>\n<\/ol>\n\n<!--page-->\n\n<h1 id=\"fast-exponentiation\">Fast Exponentiation<\/h1>\n\n<ol>\n<li><p>In the Diffie Hellman key-exchange protocol described in <a href=\"https:\/\/uvacs2102.github.io\/class23\">Class 23<\/a>, Alice and Bob need to compute $g^x \\mod p$ and $g^y \\mod p$ for some  $1 \\leq g,x,y \\leq p-1$. Suppose $p$ is a (prime) number that has 1000 bits when represented in binary.<\/p>\n\n<p>(a) Explain  what is wrong (from a practical efficiency point of view) with using the following algorithm for computing $g^x$. (The $rem(a,p)$ operation computes the remainder of $a$ modulo $p$ using the well-known efficient division algorithm.)<\/p>\n\n<pre><code class=\"language-python\">def SlowExp(g,p,x):\n        a = 1 \n        while x &gt; 0:\n            a = a * g\n            a = rem(a,p)\n            x = x - 1\n        return a\n<\/code><\/pre>\n\n<p>Hint: try to estimate how many multiplications are used.<\/p>\n\n<p>(b) Describe a modified version of the &ldquo;Fast Exponentiation Program&rdquo; in Section 6.3.1 of the book that is useful computing $g^x \\mod p$. How many multiplications does this program do in maximum  to obtain $g^x$ for an arbitrary $1\\leq x\\leq p-1$ for a 1000 digit $p$?<\/p><\/li>\n<\/ol>\n\n<h3 id=\"abelian-groups\">Abelian Groups<\/h3>\n\n<p>For each set ($R$) and operator ($P$) described below, explain why it\nis not an Abelian group (defined in <a href=\"https:\/\/uvacs2102.github.io\/class22\">Class 22<\/a>). Your answer\nshould include a convincing supporting argument that shows why the\ngiven set and operator do not satisfy at least one of the required\nproperties.<\/p>\n\n<ol>\n<li><p>$R = \\mathbb{Z}, P = \\text{\\em gcd}$ where $\\text{\\em gcd}$ is a binary operator that takes two integers as input and outputs their greatest common divisor.<\/p><\/li>\n\n<li><p>$R = \\mathbb{Z}, P = -$.<\/p><\/li>\n\n<li><p>$R = {T, F}, P = \\text{OR}$. (Hint: what must the identity be,\nand which element has no inverse?)<\/p><\/li>\n<\/ol>\n\n<h3 id=\"fields\">Fields<\/h3>\n\n<p>For each set ($R$) and first and second operations ($P<em>+$,\n$P<\/em>\\times$), answer if the set and operations are a <em>field<\/em> (as\ndefined in <a href=\"https:\/\/uvacs2102.github.io\/class23\">Class 23<\/a>). A good answer will either show how\nthe given set and operations satisfy the required properties\n(including explaning what the additive identify and multiplicative\nidentity are), or show how it fails to satisfy one of the required\nproperties.<\/p>\n\n<ol>\n<li><p>$R = \\mathbb{N}<em>{12}, P<\/em>+ = +\\; (\\text{mod}\\, 12), P_\\times = \\times\\; (\\text{mod}\\, 12)$.<\/p><\/li>\n\n<li><p>$R = { \\sharp, \\flat }$\n$P<em>+ = { (\\sharp, \\sharp) \\rightarrow \\sharp, (\\sharp, \\flat) \\rightarrow \\flat, (\\flat, \\sharp) \\rightarrow \\flat, (\\flat, \\flat) \\rightarrow \\sharp }$ and\n$P<\/em>\\times = { (\\sharp, \\sharp) \\rightarrow \\sharp, (\\sharp, \\flat) \\rightarrow \\sharp, (\\flat, \\sharp) \\rightarrow \\sharp, (\\flat, \\flat) \\rightarrow \\flat }.$<\/p><\/li>\n\n<li><p>$R = \\mathbb{N}<em>{31}, P<\/em>+ = \\times\\; (\\text{mod}\\, 31), P_\\times = +\\; (\\text{mod}\\, 31)$.<\/p><\/li>\n<\/ol>\n\n<h2 id=\"field-properties\">Field Properties<\/h2>\n\n<ol>\n<li><p>($\\star$) Suppose $R$ is an arbitrary field with some additive and multiplicative operations $P<em>+, P<\/em>\\times$. Suppose we are given any $a,b,c\\in R$ where $a \\neq 0$; namely, $a$ is not the additive identity element (usually denoted with $0$). Then prove  that there is a unique solution for variable $x \\in R$ that satisfies $(a ~P<em>\\times~ x) ~P<\/em>+~ b = c$.<\/p>\n\n<p>Hint: use the properties of the fields and describe a step by step process to actually find $x$.<\/p>\n\n<p>(Note the interesting message of this problem: fields shape the\nabstract notion that allows solving linear equations. Here we show it\nfor a single variable linear equation, but the idea actually extends to\nmulti-variable systems of equations.)<\/p><\/li>\n<\/ol>\n"},{"title":"Class 23: Cryptosystems","link":"https:\/\/uvacs2102.github.io\/class23\/","pubDate":"Thu, 16 Nov 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/class23\/","description":"\n\n<h3 id=\"schedule\">Schedule<\/h3>\n\n<p>Here&rsquo;s the updated (and final) schedule for the rest of the semester:<\/p>\n\n<ul>\n<li><strong>Problem Set 9<\/strong>: due on Friday, 1 December at 6:29pm. (This will be posted on 19 November.)<\/li>\n<li><strong><a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">Problem Set &omega;<\/a><\/strong> (this is optional, and not like the others, hence it uncountable number): due on Monday, 4 December at 11:59pm. See the <a href=\"https:\/\/uvacs2102.github.io\/ps\/psomega\">Problem Set &omega;<\/a> description for examples from previous students.<\/li>\n<li><strong>Final Exam<\/strong>: Thursday, 7 December, 9am-noon (in the normal lecture room)<\/li>\n<\/ul>\n\n<p><div class=\"notpdf\"><\/p>\n\n<h2 id=\"galois\">Galois<\/h2>\n\n<p><a href=\"https:\/\/plus.maths.org\/content\/genius-stupidity-and-genius-again\"><em>Genius, stupidity and genius again<\/em><\/a> (the short life of Evariste Galois), by Tope Omitola.<\/p>\n\n<p><center>\n<script async class=\"speakerdeck-embed\" data-id=\"fd58537c3f514ae193402ee5f4ce9dc4\" data-ratio=\"1.77777777777778\" src=\"\/\/speakerdeck.com\/assets\/embed.js\"><\/script>\n   <\/center><\/p>\n\n<!--   <div class=\"highlightm\">\n   <a href=\"https:\/\/uvacs2102.github.io\/docs\/class23.pdf\">See PDF Version for <b>Notes and Questions<\/b><\/a>.\n   <\/div>\n-->\n\n<p><\/div><!--endpdf-->\n   <div class=\"latex\"><\/p>\n\n<h2 id=\"modular-arithmetic\">Modular Arithmetic<\/h2>\n\n<p>Definition: A number $a$ is <em>congruent<\/em> to $b$ modulo $n$ if and only\nif $n\\, | \\, (a - b)$.  We can write this as $a \\equiv b \\;\\;\n(\\text{mod}; n)$.<\/p>\n\n<p>Prove: $a \\equiv b \\;\\; (\\text{mod}\\; n)$ iff $\\text{rem}(a, n) =\n\\text{rem}(b, n)$.<\/p>\n\n<p>#<\/p>\n\n<h2 id=\"groups-rings-and-fields\">Groups, Rings, and Fields<\/h2>\n\n<p><strong>Abelian group:<\/strong> set $R$, with a binary operation $+$:<br \/>\n   associative, commutative, additive identity (<strong>0<\/strong>), additive inverse ($\u2212a$)<\/p>\n\n<p><strong>Ring:<\/strong> set $R$, with two binary operations $+$, $\\times$:\n   Abelian group under $+$<br \/>\n   associative, multiplicative identity (<strong>1<\/strong>) under $\\times$<\/p>\n\n<p>TODO: finish\n<\/div><\/p>\n"},{"title":"Class 22: Prime Detectives","link":"https:\/\/uvacs2102.github.io\/class22\/","pubDate":"Tue, 14 Nov 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/class22\/","description":"\n\n<h3 id=\"schedule\">Schedule<\/h3>\n\n<p>Here&rsquo;s the updated (and final) schedule for the rest of the semester:<\/p>\n\n<ul>\n<li><strong>Problem Set 9<\/strong>: due on Friday, 1 December at 6:29pm. (This will be posted on 19 November.)<\/li>\n<li><strong>Problem Set Omega<\/strong> (this is optional, and not like the others, hence it uncountable number): due on Monday, 4 December at 11:59pm.<\/li>\n<li><strong>Final Exam<\/strong>: Thursday, 7 December, 9am-noon (in the normal lecture room)<\/li>\n<\/ul>\n\n<p><div class=\"notpdf\"><\/p>\n\n<h2 id=\"challenge-solution\">Challenge Solution<\/h2>\n\n<p>Connor Roos&rsquo; solution to the challenge problem about the minimum\nnumber of NAND operations (using gates, not formulas) is here: <a href=\"https:\/\/uvacs2102.github.io\/docs\/nandgates.pdf\">Description (PDF)<\/a>, <a href=\"https:\/\/gist.github.com\/cgr3mu\/4dd59c1e2994d6b3eb3906dfceb0a5b6\">Code (Java)<\/a>.<\/p>\n\n<h2 id=\"exam-2-solutions\">Exam 2 Solutions<\/h2>\n\n<p>The solutions for Exam 2 are here:\n<a href=\"https:\/\/uvacs2102.github.io\/docs\/exam2comments.pdf\">PDF<\/a>. Please read these carefully and come\nto office hours with any questions you have, especially if you had\ndifficulties on any of the exam problems.<\/p>\n\n<p><center>\n<script async class=\"speakerdeck-embed\" data-id=\"7aeb7c43977640d88007004a0332b314\" data-ratio=\"1.77777777777778\" src=\"\/\/speakerdeck.com\/assets\/embed.js\"><\/script>\n   <\/center><\/p>\n\n<p><div class=\"highlightm\">\n   <a href=\"https:\/\/uvacs2102.github.io\/docs\/class22.pdf\">See PDF Version for <b>Notes and Questions<\/b><\/a>.\n   <\/div><\/p>\n\n<h2 id=\"excerpt\">Excerpt<\/h2>\n\n<p>G. H. Hardy, <a href=\"http:\/\/www.math.ualberta.ca\/~mss\/misc\/A%20Mathematician's%20Apology.pdf\"><em>A Mathematician&rsquo;s Apology<\/em><\/a>, 1940.<\/p>\n\n<p><blockquote>\nA man <font color=\"gray\">(sic - Hardy&rsquo;s quote, unfortunately, but typical for 1940, uses <a href=\"https:\/\/www.cs.virginia.edu\/~evans\/cs655\/readings\/purity.html\">sexist language<\/a> throughout, but I will leave it as written, but &ldquo;man&rdquo; here means &ldquo;person&rdquo;, and &ldquo;he&rdquo; and &ldquo;his&rdquo; are not meant to be limited to males)<\/font> who sets out to justify his existence and his activities\nhas to distinguish two different questions. The first is whether the\nwork which he does is worth doing; and the second is why he does it,\nwhatever its value may be. The first question is often very difficult,\nand the answer very discouraging, but most people will find the second\neasy enough even then. Their answers, if they are honest, will usually\ntake one or other of two forms; and the second form is a merely a\nhumbler variation of the first, which is the only answer we need\nconsider seriously.<\/p>\n\n<p>(1) \u2018I do what I do because it is the one and only thing that I\ncan do at all well. I am a lawyer, or a stockbroker, or a professional\ncricketer, because I have some real talent for that particular\njob. I am a lawyer because I have a fluent tongue, and am\ninterested in legal subtleties; I am a stockbroker because my\njudgment of the markets is quick and sound; I am a professional\ncricketer because I can bat unusually well. I agree that it might be\nbetter to be a poet or a mathematician, but unfortunately I have no\ntalent for such pursuits.\u2019<\/p>\n\n<p>I am not suggesting that this is a defence which can be made\nby most people, since most people can do nothing at all well. But\nit is impregnable when it can be made without absurdity, as it can\nby a substantial minority: perhaps five or even ten percent of men\ncan do something rather well. It is a tiny minority who can do\nsomething really well, and the number of men who can do two\nthings well is negligible. If a man has any genuine talent he\nshould be ready to make almost any sacrifice in order to cultivate\nit to the full.<\/p>\n\n<p>&hellip;<\/p>\n\n<p>There is also what I call the \u2018humbler variation\u2019 of the standard\napology; but I may dismiss this in a very few words.<\/p>\n\n<p>(2) \u2018There is nothing that I can do particularly well. I do what I\ndo because it came my way. I really never had a chance of doing\nanything else.\u2019 And this apology too I accept as conclusive. It is\nquite true that most people can do nothing well. If so, it matters\nvery little what career they choose, and there is really nothing\nmore to say about it. It is a conclusive reply, but hardly one likely\nto be made by a man with any pride; and I may assume that none\nof us would be content with it.<\/p>\n\n<p>&hellip;<\/p>\n\n<p>A man\u2019s first duty, a young man\u2019s at any rate, is to be\nambitious. Ambition is a noble passion which may legitimately take\nmany forms; there was something noble in the ambitions of Attila or\nNapoleon; but the noblest ambition is that of leaving behind something\nof permanent value &mdash;\n&hellip;<\/p>\n\n<p>There are many highly respected motives which may lead men\nto prosecute research, but three which are much more important\nthan the rest. The first (without which the rest must come to\nnothing) is intellectual curiosity, desire to know the truth. Then,\nprofessional pride, anxiety to be satisfied with one\u2019s performance,\nthe shame that overcomes any self-respecting craftsman when his\nwork is unworthy of his talent. Finally, ambition, desire for\nreputation, and the position, even the power or the money, which\nit brings. It may be fine to feel, when you have done your work,\nthat you have added to the happiness or alleviated the sufferings\nof others, but that will not be why you did it. So if a mathematician,\nor a chemist, or even a physiologist, were to tell me that the\ndriving force in his work had been the desired to benefit\nhumanity, then I should not believe him (nor should I think the\nbetter of him if I did). His dominant motives have been those\nwhich I have stated, and in which, surely, there is nothing of\nwhich any decent man need be ashamed.<\/p>\n\n<p>If intellectual curiosity, professional pride, and ambition are the\ndominant incentives to research, then assuredly no one has a\nfairer chance of satisfying them than a mathematician. His subject\nis the most curious of all\u2014there is none in which truth plays such\nodd pranks. It has the most elaborate and the most fascinating\ntechnique, and gives unrivalled openings for the display of sheer\nprofessional skill. Finally, as history proves abundantly,\nmathematical achievement, whatever its intrinsic worth, is the\nmost enduring of all.<\/p>\n\n<p>&hellip;<\/p>\n\n<p>A mathematician, like a painter or a poet, is a maker of patterns.  If\nhis patterns are more permanent than theirs, it is because they are\nmade with <em>ideas<\/em>. &hellip; The mathematician\u2019s patterns, like the\npainter&rsquo;s or the poet&rsquo;s must be beautiful; the ideas like the colours\nor the words, must fit together in a harmonious way. Beauty is the\nfirst test: there is no permanent place in the world for ugly\nmathematics.<\/p>\n\n<p>&hellip;<\/p>\n\n<p>The fact is that there are few more \u2018popular\u2019 subjects than\nmathematics. Most people have some appreciation of mathematics,\njust as most people can enjoy a pleasant tune; and there are\nprobably more people really interested in mathematics than in\nmusic. Appearances suggest the contrary, but there are easy\nexplanations. Music can be used to stimulate mass emotion, while\nmathematics cannot; and musical incapacity is recognized (no\ndoubt rightly) as mildly discreditable, whereas most people are so\nfrightened of the name of mathematics that they are ready, quite\nunaffectedly, to exaggerate their own mathematical stupidity.<\/p>\n\n<p>&hellip;<\/p>\n\n<p>It is undeniable that a good deal of\nelementary mathematics\u2014and I use the word \u2018elementary\u2019 in the\nsense in which professional mathematicians use it, in which it\nincludes, for example, a fair working knowledge of the differential\nand integral calculus\u2014has considerable practical utility.\nThese parts of mathematics are, on the whole, rather dull; they are\njust the parts which have the least aesthetic value. The \u2018real\u2019\nmathematics of the \u2018real\u2019 mathematicians, the mathematics of\nFermat and Euler and Gauss and Abel and Riemann, is almost\nwholly \u2018useless\u2019 (and this is as true of \u2018applied\u2019 as of \u2018pure\u2019\nmathematics). It is not possible to justify the life of any genuine\nprofessional mathematician on the ground of the \u2018utility\u2019 of his\nwork.<\/p>\n\n<p>But here I must deal with a misconception. It is sometimes suggested\nthat pure mathematicians glory in the uselessness of their work, and\nmake it a boast that it has no practical applications.  The imputation\nis usually based on an incautious saying attributed to Gauss, to the\neffect that, if mathematics is the queen of the sciences, then the\ntheory of numbers is, because of its supreme uselessness, the queen of\nmathematics\u2014I have never been able to find an exact quotation. I am\nsure that Gauss\u2019s saying (if indeed it be his) has been rather crudely\nmisinterpreted.  If the theory of numbers could be employed for any\npractical and obviously honourable purpose, if it could be turned\ndirectly to the furtherance of human happiness or the relief of human\nsuffering, as physiology and even chemistry can, then surely neither\nGauss nor any other mathematician would have been so foolish as to\ndecry or regret such applications. <b>But science works for evil as well\nas for good (and particularly, of course, in time of war); and both\nGauss and less mathematicians may be justified in rejoicing that there\nis one science at any rate, and that their own, whose very remoteness\nfrom ordinary human activities should keep it gentle and clean.<\/b><\/p>\n\n<p>&hellip;<\/p>\n\n<p>We have concluded that the trivial mathematics is, on the whole,\nuseful, and that the real mathematics, on the whole, is not; that the\ntrivial mathematics does, and the real mathematics does not, \u2018do good\u2019\nin a certain sense; but we have still to ask whether either sort of\nmathematics does harm. It would be paradoxical to suggest that\nmathematics of any sort does much harm in time of peace, so that we\nare driven to the consideration of the effects of mathematics\non war. It is every difficult to argue such questions at all\ndispassionately now, and I should have preferred to avoid them;\nbut some sort of discussion seems inevitable. Fortunately, it need\nnot be a long one.<\/p>\n\n<p><b>There is one comforting conclusions which is easy for a real\nmathematician. Real mathematics has no effects on war. No one has yet\ndiscovered any warlike purpose to be served by the theory of numbers\nor relativity, and it seems very unlikely that anyone will do so for\nmany years.<\/b> It is true that there are branches of applied\nmathematics, such as ballistics and aerodynamics, which have been\ndeveloped deliberately for war and demand a quite elaborate technique:\nit is perhaps hard to call them \u2018trivial\u2019, but none of them has any\nclaim to rank as \u2018real\u2019. They are indeed repulsively ugly and\nintolerably dull; even Littlewood could not make ballistics\nrespectable, and if he could not who can? So a real mathematician has\nhis conscience clear; there is nothing to be set against any value his\nwork may have; mathematics is, as I said at Oxford, a \u2018harmless and\ninnocent\u2019 occupation.<\/p>\n\n<p>The trivial mathematics, on the other hand, has many applications\nin war. The gunnery experts and aeroplane designers, for\nexample, could not do their work without it. And the general\neffect of these applications is plain: mathematics facilitates (if not\nso obviously as physics or chemistry) modern, scientific, \u2018total\u2019\nwar.<\/p>\n\n<p>It is not so clear as it might seem that this is to be regretted,\nsince there are two sharply contrasted views about modern scientific\nwar. The first and the most obvious is that the effect of science on\nwar is merely to magnify its horror, both by increasing the sufferings\nof the minority who have to fight and by extending them to other\nclasses. This is the most natural and orthodox view.  But there is a\nvery different view which seems also quite tenable, and which has been\nstated with great force by Haldane in <em>Callinicus<\/em>. It can be\nmaintained that modern warfare is less horrible than the warfare of\npre-scientific times; that bombs are probably more merciful than\nbayonets; that lachrymatory gas and mustard gas are perhaps the most\nhumane weapons yet devised by military science; and that the orthodox\nview rests solely on loos-thinking sentimentalism. It may also by\nurged (though this was not one of Haldane\u2019s theses) that the\nequalization of risks which science was expected to bring would be in\nthe long range salutary; that a civilian\u2019s life is not worth more than\na soldier\u2019s, nor a woman\u2019s more than a man\u2019s; that anything is better\nthan the concentration of savagery on one particular class; and that,\nin short, the sooner war comes \u2018all out\u2019 the better.<\/p>\n\n<p>I do not know which of these views is nearer to the truth. It is\nan urgent and a moving question, but I need not argue it here. It\nconcerns only the \u2018trivial\u2019 mathematics, which it would be\nHogben\u2019s business to defend rather than mine. The cases for his\nmathematics may be rather more than a little soiled; the case for\nmine is unaffected.<\/p>\n\n<p>Indeed, there is more to be said, since there is one purpose at any\nrate which the real mathematics may serve in war. When the world is\nmad, a mathematician may find in mathematics an incomparable anodyne.\n   <\/blockquote><\/p>\n\n<p><\/div><!--endpdf--><\/p>\n\n<p><div class=\"latex\"><\/p>\n\n<h2 id=\"number-theory\">Number Theory<\/h2>\n\n<p>Definition: $a$ divides $b$ ($a\\, |\\, b$) iff there is an integer $k$ such that $ak = b$.<\/p>\n\n<p>Definition: A <em>prime<\/em> is a number greater than 1 that is divisible\nonly by itself and 1.<\/p>\n\n<p>Theorem: There are <em>infinitely<\/em> many prime numbers.<\/p>\n\n<p>Prove by contradiction (and well ordering principle):<\/p>\n\n<p>#\n##<\/p>\n\n<p><strong>Fundamental theorem of arithmetic<\/strong>: every positive number $n$ can be written uniquely as a product of primes: $n = p_1 \\cdot p_2 \\cdot \\cdots \\cdot p_k$ where $p<em>i \\le p<\/em>{i + 1}$.<\/p>\n\n<!--page-->\n\n<h2 id=\"groups-and-rings\">Groups and Rings<\/h2>\n\n<p>$R$ is an Abelian group with respect to binary operation $P$ if it is:<\/p>\n\n<ul>\n<li>associative: $\\forall a, b, c \\in R. (a P b) P c = a P (b P c)$.<\/li>\n<li>commutative: $\\forall a, b \\in R. a P b = b P a$.<\/li>\n<li>has an identity: $\\exists z \\in R . \\forall a \\in R . a P z = a$.<\/li>\n<li>every element has an inverse with respect to that identity: $\\forall a \\in R . \\exists w \\in R . a P w = z$.<\/li>\n<\/ul>\n\n<p>Which of these are Abelian groups:<\/p>\n\n<ul>\n<li>$R = \\mathbb{N}, P = +$.<\/li>\n<li>$R = \\mathbb{N}, P = \\times$.<\/li>\n<li>$R = \\mathbb{Z}, P = +$.<\/li>\n<li>$R = \\mathbb{Q}, P = \\times$.<\/li>\n<li>$R = { T, F}, P = NAND$.<\/li>\n<\/ul>\n\n<p><\/div><\/p>\n"},{"title":"Schedule Updates","link":"https:\/\/uvacs2102.github.io\/scheduleupdates\/","pubDate":"Sun, 12 Nov 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/scheduleupdates\/","description":"<p>We are adjusting the schedule for Problem Set 9 and Problem Set\n&Omega; from the original schedule. Instead of being due on Wednesday,\nNovember 22 as previously scheduled, Problem Set 9 will now be due on\nFriday, 1 December (6:29pm). Its scope will be expanded to include\nClasses 20-24, and we expect to posted it on November 19.<\/p>\n\n<p>Problem Set &Omega; (which is optional and different, and will be\ndiscussed in class this week) will now be due on Monday, 4 December\n(11:59pm).<\/p>\n\n<p>If the schedule change causes any hardship for you, and you would\nprefer to have a PS9 due on Nov 22, let one of the professors know and\nwe can arrange something different.<\/p>\n"},{"title":"Class 21: Review","link":"https:\/\/uvacs2102.github.io\/class21\/","pubDate":"Tue, 07 Nov 2017 00:00:00 +0000","guid":"https:\/\/uvacs2102.github.io\/class21\/","description":"\n\n<h3 id=\"exam-2\">Exam 2<\/h3>\n\n<p>Exam 2 will be in class on Thursday, 9 Nov. See <a href=\"https:\/\/uvacs2102.github.io\/docs\/class20.pdf\">Class 20<\/a> notes for details on the exam.<\/p>\n\n<p><div class=\"notpdf\">\n   <center>\n<script async class=\"speakerdeck-embed\" data-id=\"13a56eac91bd4098840e980ed10fc01f\" data-ratio=\"1.77777777777778\" src=\"\/\/speakerdeck.com\/assets\/embed.js\"><\/script>\n   <\/center><\/p>\n\n<p><div class=\"highlightm\">\n   <a href=\"https:\/\/uvacs2102.github.io\/docs\/class21.pdf\">See PDF Version for <b>Notes and Questions<\/b><\/a>.\n   <\/div><\/p>\n\n<p><\/div><!--endpdf--><\/p>\n\n<p><div class=\"latex\"><\/p>\n\n<h2 id=\"main-topics-for-review\">Main Topics for Review<\/h2>\n\n<p>Today we review the topics that we learned after Exam 1 with the\nexception of number theory (which will not be included in Exam\n2).<\/p>\n\n<ul>\n<li><p>State Machines and how to argue about correctness of programs.<\/p><\/li>\n\n<li><p>Recursive Definitions and how to prove statements about them using structural induction.<\/p><\/li>\n\n<li><p>Infinite Sets and Cardinalities, and how to show sets are finite, infinite, countable, or uncountable.<\/p><\/li>\n<\/ul>\n\n<h2 id=\"state-machines\">State Machines<\/h2>\n\n<p>$M = (S, G \\subset S \\times S, q_0 \\in S)$ defines a state machine.<\/p>\n\n<p>$P$ is a <em>preserved invariant<\/em> if:\n$$ \\forall q \\in S. (P(q) \\wedge (q \\rightarrow r) \\in G) \\implies P&reg;$$<\/p>\n\n<p><strong>Invariant Principle:<\/strong> If $P$ is a <em>preserved invariant<\/em> and\n  $P(q_0)$ is true, then property $P$ is true for all <strong>reachable\n  states<\/strong>.<\/p>\n\n<h2 id=\"proving-program-correctness\">Proving Program Correctness<\/h2>\n\n<p>To prove a program $R$ produces the correct output:<\/p>\n\n<ol>\n<li><p>Model it as a state machine, $M$.<\/p><\/li>\n\n<li><p>Show that $M$ eventually terminates.<\/p><\/li>\n\n<li><p>Show partial correctness:<\/p>\n\n<ul>\n<li>Find a suitable preserved invariant $P$ for $M$.<\/li>\n<li>Show that $P(q)$ for all final states implies the output correctness property. (Final states are states where the execution terminates.)<\/li>\n<li>Show $P(q_0)$ &mdash; the perserved invariant holds for the start state.<\/li>\n<\/ul><\/li>\n<\/ol>\n\n<!--page-->\n\n<h2 id=\"recursive-data-types\">Recursive Data Types<\/h2>\n\n<p>To define a recursive data type $D$:<\/p>\n\n<ul>\n<li><p>Define one or more <strong>base<\/strong> objects, $d \\in D$.<\/p><\/li>\n\n<li><p>Define one or more <strong>constructor<\/strong> cases that specify how to construct a new object $d \\in D$ from one or more previoulsy-constructed objects, $d_1, d_2, \\ldots \\in D$.<\/p><\/li>\n<\/ul>\n\n<p><\/div><\/p>\n"}]}}