欢迎来到天天文库
浏览记录
ID:14364182
大小:1.66 MB
页数:210页
时间:2018-07-28
《discrete math in computer science - bogart , stein》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、DiscreteMathinComputerScienceKenBogartCliffSteinDept.ofMathematicsDept.ofComputerScienceDartmouthCollegeDartmouthCollegeJune23,20022Thisisaworkingdraftofatextbookforadiscretemathematicscourse.Thiscourseisdesignedtobetakenbycomputersciencestudents.Theprerequisit
2、esarefirstsemestercalculus(Math3)andtheintroductorycomputersciencecourse(CS5).Theclassismeanttobetakenconcurrentlywithorafterthesecondcomputersciencecourse,DataStructuresandComputerProgramming(CS15).ThisclassisaprerequitetoAlgorithms(CS25)anditisrecommendedthat
3、itbetakenbeforeallCScoursesotherthan5and15.cCopyrightKennethP.BogartandCliffStein2002Chapter1Counting1.1BasicCountingAboutthecourseInthesenotes,studentactivitiesalternatewithexplanationsandextensionsofthepointoftheactivities.Thebestwaytousethesenotesistotrytom
4、asterthestudentactivitybeforebeginningtheexplanationthatfollows.Theactivitiesarelargelymeanttobedoneingroupsinclass;thusforactivitiesdoneoutofclasswerecommendtryingtoformagroupofstudentstoworktogether.Thereasonthattheclassandthesenotesaredesignedinthiswayistoh
5、elpstudentsdeveloptheirownhabitsofmathematicalthought.Thereisconsiderableevidencethatstudentswhoareactivelydiscoveringwhattheyarelearningrememberitfarlongerandaremorelikelytobeabletouseitoutofthecontextinwhichitwaslearned.Studentsaremuchmorelikelytoaskquestion
6、suntiltheyunderstandasubjectwhentheyareworkinginasmallgroupwithpeersratherthaninalargerclasswithaninstructor.Thereisalsoevidencethatexplainingideastosomeoneelsehelpsusorganizetheseideasinourownminds.However,differentpeoplelearndifferently.Alsotheamountofmaterial
7、indiscretemathematicsthatisdesirableforcomputersciencestudentstolearnismuchmorethancanbecoveredinanacademictermifalllearningistobedonethroughsmallgroupinteraction.Forthesereasonsabouthalfofeachsectionofthesenotesisdevotedtostudentactivities,andhalftoexplanatio
8、nandextensionofthelessonsoftheseactivities.Analyzingloops1.1-1Theloopbelowispartofanimplementationofselectionsorttosortalistofitemschosenfromanorderedset(numbers,alphabetcharacters
此文档下载收益归作者所有