Class Notes (835,108)
Canada (508,934)
CS 341 (26)
Lecture

Assignment #3 This is the third assignment from winter 2010 term

2 Pages
198 Views
Unlock Document

Department
Computer Science
Course
CS 341
Professor
Forbes Burkowski
Semester
Fall

Description
CS341Winter2010TimothyChanAssignment3dueMarch9TuesdaynoonPleasereadhttpwwwstudentcsuwaterloocacs341policieshtmlrstforgeneralinstructionsandhttpwwwstudentcsuwaterloocacs341proghtmlforprogrammingguidelines127marksProgrammingquestionImplementtheOntimealgorithmfortheintersectionproblemfromAssignment2Question4cSeethemodelsolutionsTheinputtoyourprogramsisgiveninthefollowingformatwherethexsandysareallintegersiinn12xy11yxnn1100xy1100xynn22HerendenotesthesizeoftheincreasingsetAandndenotesthesizeofthedecreasingsetBThe1200ithpointofAhascoordinatesxyandtheithpointofBhascoordinatesxyYoumayiiiiassumenotwoxcoordinatesandnotwoycoordinatesarethesameyoumayassumethattheinputisvalidieAisindeedincreasingandBisdecreasingbutthepointsarenotpresortedandanintersectionexistsTheoutputtoyourprogramshouldhavejustonelineinthefollowingformatijk0000yxyThismeansthatanintersectionexistsbetweentheedgexyxyofAandtheedgexiijjkkofBDonotincludeanyotherinformationortextintheoutputNotedontusethelineartimeselectionalgorithmfromclassitistoomessytoimplement
More Less

Related notes for CS 341

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit