<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://srtsolutions.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Dennis Matveyev</title><subtitle type="html" /><id>http://srtsolutions.com/blogs/dmatveyev/atom.aspx</id><link rel="alternate" type="text/html" href="http://srtsolutions.com/blogs/dmatveyev/default.aspx" /><link rel="self" type="application/atom+xml" href="http://srtsolutions.com/blogs/dmatveyev/atom.aspx" /><generator uri="http://communityserver.org" version="4.1.31106.3070">Community Server</generator><updated>2009-11-18T13:37:00Z</updated><entry><title>Java Programming</title><link rel="alternate" type="text/html" href="/blogs/dmatveyev/archive/2010/01/06/java-programming.aspx" /><id>/blogs/dmatveyev/archive/2010/01/06/java-programming.aspx</id><published>2010-01-06T17:00:00Z</published><updated>2010-01-06T17:00:00Z</updated><content type="html">&lt;p&gt;I will be teaching a Java Programming class at the University of Michigan-Dearborn this coming up school term.&amp;nbsp; It is a 3 hour class on Tuesdays that covers many concepts from Java, including GUI, RMI and the generally-accepted object-oriented concepts and frameworks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://srtsolutions.com/aggbug.aspx?PostID=33594" width="1" height="1"&gt;</content><author><name>dmatveyev</name><uri>http://srtsolutions.com/members/dmatveyev/default.aspx</uri></author></entry><entry><title>Putnam Exam</title><link rel="alternate" type="text/html" href="/blogs/dmatveyev/archive/2009/12/07/putnam-exam.aspx" /><id>/blogs/dmatveyev/archive/2009/12/07/putnam-exam.aspx</id><published>2009-12-07T15:52:00Z</published><updated>2009-12-07T15:52:00Z</updated><content type="html">&lt;p&gt;On December 5th I have taken the Mother of all Math Exams.&amp;nbsp; Established in 1938 by William Lowell Putnam to encourage healthful rivalry between colleges and institutions, it is a notoriously difficult and challenging exam featuring problems from many topics of Pure and Theoretical Math.&amp;nbsp; &lt;br /&gt;Every year about 2000 students take the exam.&amp;nbsp; Some do it for fun, some for bragging rights, and some are good enough to win prizes or to use their score to get into a prestigious graduate school.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Exam is taken in two sessions, each one lasting 3 hours, with a break for lunch in between.&amp;nbsp; There are 6 problems to solve during each session.&amp;nbsp; Each question features a problem from one or more branches of Mathematics.&amp;nbsp; Solving a problem means solving it correctly and showing all relevant work, usually by constructing a rigorous proof of your answer.&amp;nbsp; A correct solution of a problem yields 10 points.&amp;nbsp; Partial credit may be given if a significant progress has been done towards a solution, but such credit is rare.&amp;nbsp; Out of all the students who take the exam, roughly half of them receive a score of 0.&lt;/p&gt;
&lt;p&gt;I have a good feeling that I have solved one of the problems.&amp;nbsp; I will know the actual results in March, when the exam will be graded.&lt;/p&gt;
&lt;p&gt;Here is the problem:&lt;br /&gt;Can any positive rational number be expressed as a quotient of products of factorials?&lt;br /&gt;For example, 10/9 = (2!5!)/(3!3!3!)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://srtsolutions.com/aggbug.aspx?PostID=29259" width="1" height="1"&gt;</content><author><name>dmatveyev</name><uri>http://srtsolutions.com/members/dmatveyev/default.aspx</uri></author></entry><entry><title>I am going to CHINA!</title><link rel="alternate" type="text/html" href="/blogs/dmatveyev/archive/2009/11/18/i-am-going-to-china.aspx" /><id>/blogs/dmatveyev/archive/2009/11/18/i-am-going-to-china.aspx</id><published>2009-11-18T22:25:00Z</published><updated>2009-11-18T22:25:00Z</updated><content type="html">&lt;p&gt;After UM team won 2nd place in the regional contest, it meant that they&amp;nbsp;were going to Harbin, China, to participate in the World Programming Contest Finals.&lt;br /&gt;I wanted to go too, but&amp;nbsp;my going depended on the University getting the funding for&amp;nbsp;me, so I wasn&amp;#39;t sure if I will be going along with the team and their main coach.&amp;nbsp;&lt;br /&gt;But that was not all that was to come yet.&lt;/p&gt;
&lt;p&gt;A few days after the regional contest, it turned out that there was a problem with the judging during the contest.&amp;nbsp; After fixing the problem and rejudging contestants&amp;#39; submissions, it was determined that Ann Arbor&amp;#39;s team actually came in 4th, and thus was not eligible to go to the World Finals...&lt;br /&gt;I didn&amp;#39;t know what to feel or what to expect.&amp;nbsp; The team&amp;#39;s coach&amp;nbsp;was hopeful.&amp;nbsp; Since we won&amp;nbsp;2nd place, and everybody was judged&amp;nbsp;equally during the contest, there was still a good case for&amp;nbsp;our team going.&amp;nbsp; I was hopeful too.&lt;/p&gt;
&lt;p&gt;And today I got the email saying that WE ARE GOING!&lt;/p&gt;
&lt;p&gt;WE ARE GOING TO CHINA !!&amp;nbsp; WOO HOO !&amp;nbsp;&amp;nbsp; WOO HOO HOO !!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.eecs.umich.edu/eecs/about/articles/2009/ACM_prog_winners.html"&gt;Link to UM Article&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://cm.baylor.edu/welcome.icpc"&gt;Link to World Finals Official Site&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://srtsolutions.com/aggbug.aspx?PostID=27948" width="1" height="1"&gt;</content><author><name>dmatveyev</name><uri>http://srtsolutions.com/members/dmatveyev/default.aspx</uri></author><category term="finals" scheme="http://srtsolutions.com/blogs/dmatveyev/archive/tags/finals/default.aspx" /><category term="world" scheme="http://srtsolutions.com/blogs/dmatveyev/archive/tags/world/default.aspx" /><category term="icpc" scheme="http://srtsolutions.com/blogs/dmatveyev/archive/tags/icpc/default.aspx" /><category term="harbin" scheme="http://srtsolutions.com/blogs/dmatveyev/archive/tags/harbin/default.aspx" /><category term="china" scheme="http://srtsolutions.com/blogs/dmatveyev/archive/tags/china/default.aspx" /><category term="acm" scheme="http://srtsolutions.com/blogs/dmatveyev/archive/tags/acm/default.aspx" /></entry><entry><title>TopCoder Contest 453</title><link rel="alternate" type="text/html" href="/blogs/dmatveyev/archive/2009/11/18/topcoder-contest-453.aspx" /><id>/blogs/dmatveyev/archive/2009/11/18/topcoder-contest-453.aspx</id><published>2009-11-18T21:57:00Z</published><updated>2009-11-18T21:57:00Z</updated><content type="html">&lt;p&gt;I&amp;#39;ve participated in an online TopCoder Contest this Tuesday, November 17th.&lt;/p&gt;
&lt;p&gt;Unfortunately, as it turned out that TopCoder has had some problems with their networking equipment and about 10 minutes into the contest, I found that I was not able to submit my code.&amp;nbsp; Neither could the rest of the 950 contestants.&lt;br /&gt;Due to the problems with the contest, TopCoder decided to make this round unrated, which means you could still solve the problems, but your score will not go on your record.&lt;/p&gt;
&lt;p&gt;Aside from these difficulties, I still had fun solving the 250 point problem, which is also known as an Easy problem.&amp;nbsp; Before TopCoder&amp;#39;s server went down, some people have solved it in under&amp;nbsp;5 minutes or less(!!)&amp;nbsp; Here&amp;#39;s the problem statement: &lt;/p&gt;
&lt;h3&gt;Problem Statement&lt;/h3&gt;
&lt;p&gt;A bunch of teams have had a tournament of some kind.&amp;nbsp; Some of the teams won, some lost, and some had a draw.&amp;nbsp; Some of&amp;nbsp;teams did not participate in the tournament.&lt;br /&gt;You are given a list of points that each team had accumulated after the tournament.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;When a team wins, they get 2 points.&amp;nbsp; If they lose, they get 0 points.&amp;nbsp; If there is a draw, each team gets 1 point each.&lt;br /&gt;You are given an array of points, where the&amp;nbsp;i-th element is the score of the i-th team. &lt;br /&gt;Your task is to figure out the minimum number of games that could have been played to achieve those standings.&amp;nbsp; If the &lt;strong&gt;points &lt;/strong&gt;array has an invalid state, return -1.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;points&lt;/strong&gt;:&amp;nbsp; {10, 1, 1} returns: 6&lt;br /&gt;Here the first team has five wins or four wins and two draws. The second and the third team each has one draw.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;points&lt;/strong&gt;:&amp;nbsp; {1, 1, 1} returns: -1&lt;br /&gt;These standings are impossible. There is no way for each team to have a draw in this case.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;points&lt;/strong&gt;:&amp;nbsp; {0, 0, 0, 0, 0, 0, 0} returns: 0&lt;br /&gt;There are no points, which means no games have been played yet.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;points:&amp;nbsp; &lt;/strong&gt;{13, 8, 7} returns: 14&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://srtsolutions.com/aggbug.aspx?PostID=27943" width="1" height="1"&gt;</content><author><name>dmatveyev</name><uri>http://srtsolutions.com/members/dmatveyev/default.aspx</uri></author><category term="topcoder problem" scheme="http://srtsolutions.com/blogs/dmatveyev/archive/tags/topcoder+problem/default.aspx" /></entry><entry><title>Regional Contest at UM Ann Arbor</title><link rel="alternate" type="text/html" href="/blogs/dmatveyev/archive/2009/11/18/programming-contest-at-um-ann-arbor.aspx" /><link rel="enclosure" type="image/jpeg" length="275673" href="http://srtsolutions.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.79.35/DSC_5F00_6822_2D00_Victors.jpg" /><id>/blogs/dmatveyev/archive/2009/11/18/programming-contest-at-um-ann-arbor.aspx</id><published>2009-11-18T21:05:00Z</published><updated>2009-11-18T21:05:00Z</updated><content type="html">&lt;p&gt;On October 31st, University of Michigan Ann Arbor hosted their 3rd ACM ICPC Regional Programming Contest.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;ACM ICPC is a distributed online event sponsored by IBM.&amp;nbsp; This time we have had four distributed contest sites: Cincinnati Ohio, McMaster Site Ontario, Youngstown Ohio, and UM Ann Arbor.&amp;nbsp; There was a total of 123 teams drawn from 65 colleges and universities.&lt;br /&gt;I was at the UM site serving as an assistant site director, assistant system administrator and assistant coach for Ann Arbor teams.&amp;nbsp; I have also served as an official/unofficial photographer.&amp;nbsp; It was a great time!&lt;br /&gt;My own alma mater UM-Dearborn campus had two teams represented, where each team had solved 2 of the problems, which is quite a feat!&amp;nbsp; Only 29 out of 123 teams have solved 3 or more problems.&lt;br /&gt;You may view the &lt;a href="http://acm.ashland.edu/2009/Problem-Set/Problems/2009.pdf"&gt;Problem Set&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After 5 grueling hours, Ann Arbor top team &amp;quot;Victors&amp;quot; have solved all 8 problems with time to spare!&amp;nbsp; They came in 2nd in the region.&amp;nbsp; This meant that they are going to Harbin, China!&amp;nbsp; To participate in the World Finals! &lt;br /&gt;But was I going ?&amp;nbsp; This question remained open.&amp;nbsp; My status of going as an assistant coach was unclear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://srtsolutions.com/aggbug.aspx?PostID=27935" width="1" height="1"&gt;</content><author><name>dmatveyev</name><uri>http://srtsolutions.com/members/dmatveyev/default.aspx</uri></author></entry><entry><title>Online Contest for UM Ann Arbor</title><link rel="alternate" type="text/html" href="/blogs/dmatveyev/archive/2009/11/18/practice-contest-for-um-ann-arbor.aspx" /><id>/blogs/dmatveyev/archive/2009/11/18/practice-contest-for-um-ann-arbor.aspx</id><published>2009-11-18T20:50:00Z</published><updated>2009-11-18T20:50:00Z</updated><content type="html">&lt;p&gt;On October 23, I&amp;#39;ve put on my first distributed online programming contest as a preparation run for the ICPC Regionals.&amp;nbsp; This event was a practice contest for UM Ann Arbor teams.&amp;nbsp; To give them a challenge and to make things more interesting, I&amp;#39;ve invited a few contest enthusiasts from TopCoder to participate.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve used a similar problem set as I&amp;#39;ve used for the Dearborn contest, with one important change -- The Problems Were Harder.&lt;br /&gt;It was incredibly fun and just incredible to judge this contest!&amp;nbsp; After spending so much time toiling over the problems and making them harder, it was a real shock to see the contestants solving them in 4 to 8 minutes.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;You may view the &lt;a href="http://www.dennysite.com/projects/contests/problemset.pdf"&gt;Problem Set&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://srtsolutions.com/aggbug.aspx?PostID=27916" width="1" height="1"&gt;</content><author><name>dmatveyev</name><uri>http://srtsolutions.com/members/dmatveyev/default.aspx</uri></author></entry><entry><title>Programming Contest at UM-Dearborn</title><link rel="alternate" type="text/html" href="/blogs/dmatveyev/archive/2009/11/18/programming-contest-at-um-dearborn.aspx" /><link rel="enclosure" type="image/jpeg" length="243677" href="http://srtsolutions.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.79.08/DSC_5F00_6549_2D00_group.jpg" /><id>/blogs/dmatveyev/archive/2009/11/18/programming-contest-at-um-dearborn.aspx</id><published>2009-11-18T20:34:00Z</published><updated>2009-11-18T20:34:00Z</updated><content type="html">&lt;p&gt;On September 25 I&amp;#39;ve put on University of Michigan-Dearborn&amp;#39;s 3rd semestrial Programming Contest.&amp;nbsp; It was loads of fun!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I came up with most of the problem ideas&amp;nbsp;and the write-ups for the contest.&amp;nbsp; Scott Hoffman, a 3-time&amp;nbsp;contest judge and a student of UM-D was helping me with judging the contest.&lt;br /&gt;You can check out the problem set &lt;a href="http://www-personal.umd.umich.edu/~dennismv/events/2009umd2/problems/2009fall.pdf"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Michigan Journal Wrote an article about the event &lt;a href="http://media.www.themichiganjournal.com/media/storage/paper255/news/2009/09/29/StudentLife/Going.Bananas.For.Programming.Developers.Have.A.Wild.Side-3790302.shtml"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://srtsolutions.com/aggbug.aspx?PostID=27908" width="1" height="1"&gt;</content><author><name>dmatveyev</name><uri>http://srtsolutions.com/members/dmatveyev/default.aspx</uri></author><category term="programming contest um dearborn" scheme="http://srtsolutions.com/blogs/dmatveyev/archive/tags/programming+contest+um+dearborn/default.aspx" /></entry><entry><title>Flex Jam with James Ward</title><link rel="alternate" type="text/html" href="/blogs/dmatveyev/archive/2009/11/18/flex-jam-with-james-ward.aspx" /><id>/blogs/dmatveyev/archive/2009/11/18/flex-jam-with-james-ward.aspx</id><published>2009-11-18T18:37:00Z</published><updated>2009-11-18T18:37:00Z</updated><content type="html">&lt;p&gt;September 22 -&amp;nbsp;Flex Jam with James Ward at SRT Solutions.&lt;/p&gt;
&lt;p&gt;Result:&amp;nbsp; My &lt;a href="http://www-personal.umd.umich.edu/~dennismv/events/2009umd2/problems/Aflex.html"&gt;Flex Application&lt;/a&gt;.&lt;br /&gt;It raises number 2 to any reasonable power that you provide.&lt;br /&gt;The&amp;nbsp;application uses Flex ActionScript and MXML.&amp;nbsp; Inside it uses ArrayCollection to store the number resulting from raising 2 to any power.&amp;nbsp; It also uses easeBounce effect to display the number.&lt;br /&gt;Zoom effects are courtesy of James Ward and ArrayCollection programming is by Dennis Matveyev.&lt;/p&gt;
&lt;p&gt;My reflections on Flex:&amp;nbsp; it&amp;#39;s a nice neat language.&amp;nbsp; You can do a lot of good with it if you know what you are doing and a lot of bad if you don&amp;#39;t.&lt;br /&gt;To program effectively, I would need to spend a lot more than one day on learning the language.&amp;nbsp; This Jam however has been&amp;nbsp; a nice introduction to the language itself and its power.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://srtsolutions.com/aggbug.aspx?PostID=27871" width="1" height="1"&gt;</content><author><name>dmatveyev</name><uri>http://srtsolutions.com/members/dmatveyev/default.aspx</uri></author><category term="flex jam james ward srt solutions" scheme="http://srtsolutions.com/blogs/dmatveyev/archive/tags/flex+jam+james+ward+srt+solutions/default.aspx" /></entry></feed>