专业英语听力材料.docx

上传人:b****6 文档编号:7415873 上传时间:2023-05-11 格式:DOCX 页数:44 大小:95.84KB
下载 相关 举报
专业英语听力材料.docx_第1页
第1页 / 共44页
专业英语听力材料.docx_第2页
第2页 / 共44页
专业英语听力材料.docx_第3页
第3页 / 共44页
专业英语听力材料.docx_第4页
第4页 / 共44页
专业英语听力材料.docx_第5页
第5页 / 共44页
专业英语听力材料.docx_第6页
第6页 / 共44页
专业英语听力材料.docx_第7页
第7页 / 共44页
专业英语听力材料.docx_第8页
第8页 / 共44页
专业英语听力材料.docx_第9页
第9页 / 共44页
专业英语听力材料.docx_第10页
第10页 / 共44页
专业英语听力材料.docx_第11页
第11页 / 共44页
专业英语听力材料.docx_第12页
第12页 / 共44页
专业英语听力材料.docx_第13页
第13页 / 共44页
专业英语听力材料.docx_第14页
第14页 / 共44页
专业英语听力材料.docx_第15页
第15页 / 共44页
专业英语听力材料.docx_第16页
第16页 / 共44页
专业英语听力材料.docx_第17页
第17页 / 共44页
专业英语听力材料.docx_第18页
第18页 / 共44页
专业英语听力材料.docx_第19页
第19页 / 共44页
专业英语听力材料.docx_第20页
第20页 / 共44页
亲,该文档总共44页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

专业英语听力材料.docx

《专业英语听力材料.docx》由会员分享,可在线阅读,更多相关《专业英语听力材料.docx(44页珍藏版)》请在冰点文库上搜索。

专业英语听力材料.docx

专业英语听力材料

 

Lecture2前17分钟

Lecture2后17分钟

Lecture3前18分钟

Lecture3后17分钟

Lecture4前18分钟

Lecture4后18分钟

Lecture5前17分钟

Lecture5后15分钟

Lecture6前19分钟

Lecture6后15分钟

Lecture7

Lecture8前15分钟

Lecture8第15—30分钟

Lecture8第30—48分钟

Lecture8第48—完

 

Lecture2前17分钟回首页

Thisiscomputerprogramming1fromtheUniversityofWashington.Welcomeback!

Todayinlecture2,we’llbegoingrightintothetechnicalcontentofthiscourseaswetalkaboutproblems,algorithmsandprograms.Asyoumaybeaware,programmingacomputerinvolvesagreatamountofdetail.We’llhaveplentyoftimelaterinthiscoursetogettoomanyofthosedetails.Butprogrammingalsoinvolveshigherlevelconceptsinproblemsolvingskills.I’dliketofocusonthattoday,lateronwe’llseedetailswhichwillhelpuscarryoutthesehigherlevelproblemsolvingstrategies.Sowe’lltalktodayaboutwhatproblemsmightbesolvedbycomputers,whatalgorithmsareandwhatprogramsare.We’llaboutageneralapproachtosolvingproblemswithcomputersanddiscusshowaresolutionscanbeturnedintocodethataCPUcanactuallyexecute,we’llfocustodayontheselargeideas.Tostartwith,computerprogrammingisprimarilyamatterofusingacomputertosolveaproblemthatmightbeonedefinitionofprogramming,problemsolvingthroughcomputers.Nownotallproblemsthatwerefertobythatnameineverydayusemightbeamenabletosolutionbycomputer.Problemoftrafficjamsduringrushhourforexample,probablycan’tbesolvedbywritingacprogram,andthesamegoesforproblemslikeworldpeaceorworldhunger.Heartofthisartprogrammingisbeabletorecognizewhichproblemsaresuitableforsolutions.Ingeneral,aproblemthatacomputercansolvehastobeoneforwhichyouasaprogrammercancomeupwithanalgorithm.Analgorithmisasequenceofprecisestepswhichwillleadthesolutionoftheproblem.Ifyoucan’tcomeupwiththealgorithmorsequenceofsteps,thenyoucan’tuseacomputertosolvetheproblem.Thesestepshavetobequitpreciseandtheyhavetobemechanicalinthesensethattheywillbecarriedoutbyamachine,thecomputeroncetheprogrammingisdone,ratherthanbyhumanbeing.Notionofthealgorithmisafundamentaloneanditperhapsquitedistinguishescomputersciencefromotherfieldsofscienceandengineering.Certainlyalgorithmsareusedinmanyotherfields,butnoworryexceptioncomputerscienceisthealgorithmitselfofnotion,naturenaturalcharacteristicskeepabilitiesofalgorithmsofcentralareaofstudy.Ifyoucancomeupwithanalgorithm,thenthenextstepisturnthatalgorithmintoacomputerprogram,alotofthiscoursewillbeaboutthatprocesstakingthealgorithmandturnitintoaprogramthatcanbeexecuted.Nowweexpressthesealgorithmsusingwhatwecallaprogramminglanguage,thisisaspecialnotationthatwewillbeabletotranslateintoaformthattheCPUitselfwillbeabletoexecute.OurcoursefocusesontheClanguage,therearemanyotherprogramminglanguagesthatyoumightheardseveralofthem,C++,Java,bothofwhicharequitcloselyrelatedtoCandderive(起源)tranit,othersFORTRAN,Basicyoumayhaveexperiencewith.Let’scompareprogrammingtoanotherkindofalgorithm-makeactivitythatwe’refamiliarwithfromeverydaylife,namelycooking.Solet’stakeatypicalproblem,youarehungry,youneedtoeatsomething,Fudgebrowniesoundsreallygood.Sohereistheproblem:

youwanttomakesomeFudgebrownie.OK,thatcoursebounds(跳跃)tothestatementoftheproblem,thegoal:

makeFudgebrownie,what’sthealgorithm?

Well,incookingwecallthatarecipe,arecipeissomethinglikeopentwobagsofchocolatechipsputtheminthebowl,addtwotablespoonsofflour,stir(搅拌)themtogetherandbakethemintheovenfor3hours,orwhateverthealgorithmis,youmayknowmoreaboutcookingthanIdo.OK,that’sthealgorithmknown,thestepbysteprecipethattellswhatthingstodoinwhatorder.Nowisthatquitlikeaprogram?

Well,notquit,whenwewriteaprogram,wewillbegiven(?

?

?

?

?

)ittoaparticularcomputertoexecuteandwehavetowriteitinalanguageandnotationsthatthecomputerunderstands.Justlikearecipehastobewritteninalanguagethatthe(shouldbean‘a’here)cookunderstands.OK,soImayknowthesestepstogothroughanyingredientsbutI’vegottosaythatinEnglish,inRussian(orlan口误)orinwhateverthelanguagethecookis,you‘vegottousetherightterminology,therightoperationsanddoeverythinginexactlytherightorderbutnotendupwithFudgebrownie.OK,andIstillbehungryandIwanttosolvemyproblem.

Hereisitsprocedurethatmanypeoplefindusefulasageneralstrategyforsolvingproblemswithacomputer.Thefirststepmaybeobviousbutit’sforstating,it’stospecifywhattheproblemis.Now,althoughit’sobvious,it’softenhardtodo.Problemthatyouaregiventosolvebyclient,customer,ateacheraresometimesvague(含糊不清的)andmaytakeconsiderable(这里应该是个类似“额外的”意思的词)amountofthenextstepofprocess,analysis.Studyingtheproblem,understandwhatitreallymeans,whatreallysort,learningmoreaboutit,asmuchasyoucanfindoutaboutit,eventuallyfromthatstudy,youhopeyoucandesignanalgorithmstepbystepprocedurefordesigningtheproblem(此句有误,后面是补充。

),designingthesolutiontotheproblems.Onceyou’vegotthealgorithmfirmlyinmind,youcanthenimplementthealgorithm,thismeanswritingaprogram.Nowit’sreallyonlyatthisstateyouneedknowledgeoftheprogramminglanguage.Soyoucandotheproblemtransactions,theanalysis,thedesignwithoutknowingwhetheryouweregoingtouseCorJava(?

?

?

?

?

)orFORTRAN,andthenattheimplantationstagebegintranslatingthatanalysisandalgorithmintotheprogramminglanguageyourcomputerwilluse.Areyoudoneyet?

Well,itwouldbeniceifthatwasthelaststep,butit’sveryeasytomakemistakessomewhereinthisprocesssotheprogramthatyouwritehastobetested,verifiedandindoingsoyoumayfindoutitdoesn’tworkexactlyasyouplannedto.Whereisthemistake?

Wellitmightbeintheprogrammingbutyoumayfindoutitwassomeoversetdesignormaybeyouhavetogobackevenafurtherlevel,maybetheanalysiswaswrongortheproblemwasstatedwrongoryoumisunderstoodwhatthepersonwhogivesyoutheproblemwanted.Allofthesethingswillrequirereanalysis,redesigningandfixingtheproblemorhopefullyfixingtheproblemandprogramandtryagain.Itwillkeepprocessinvolvingallofthesesteps.Let’stakeasimpleproblemandapplythisproceduretoit.OK,hereisaproblem:

isagivennumberevenorodd?

Soundssimple?

Yes,itissimple.Whyisitsuchasimpleproblem?

Youmayseenotrealisticallysimpletospendtimeoninacourse.Butactually,it’snotsofarremovefromreallifeproblemsyoumightwanttosolveyouhaveapayrollsystemandyouprintcheckseveryotherweekyouhavetodeterminewhetherthisisapayrollweekornot.Whatabouttheproblemsdeterminingwhetherayearisaleapyear?

Thatisasimilarflavortoit.Beyondthat,inacourselikethis,wasslidetheyareusedtopresentinformation.Itisdifficulttocompletelysolveandpresentcomplicatedproblems.Asoneofthereasonsbytheway,thatwerecommendyoulookintothetextbookforthiscourseoranothertextbookoranotherbookonthissubjectsothatyoucanseelarger,morerealisticandmoreinterestingexamples.Butfornow,thisexamplewillserveuswellandallowsustogothroughallofthestepsrecommendedforproblemsolvingandwhenwe’redonewe’llcomeupwithacompletesolutiontotheproblemincludingcode.SowhatwouldIsaythefirststepwas?

StatetheproblemuponIhavedonethatalready.AndsoIcangoontotheanalysis,andhere,youmaystartthinkingabout,uh,what’sreallymeant?

Whatnumbersareallowed?

IsanegativenumberwhatIneedtogetananswerfor?

Whataboutafractionalnumberlike10.3.Thatevenmakesensetoaskquestionforevenoroddyouhavetoaskyourselfthisquestionoryouperhapsasktheclientorteacherwhogiveyoutheproblem.Whereisthisnumbercomefrom?

Isthisnumberthatfixesforever?

Youhavetothinkaboutthatbeforeyoucanwriteanalgorithmfortheprogram.Thenthereisamorebasicquestionaboutwhatevenoroddmean.Withyourmathematicconcepts,en,mostpeoplerememberthisfromtheirschoolmathematicsbutifyouarenotsurethiswouldbeatimetogobackandlookupandremember,remindyourselfwhatthoseconceptsare.Ihavehadevencollegelevelstudentswith12yearsmathematicsbehindthemnotbesurewhetherzeroisanevenoroddnumber.Sothispossiblehasdoubtinyourmindaboutthesethingsandtheanalysisfaceiswhatitmakessensetofigureoutwhatitreallymeant.Finally,programsaysdeterminingtheanswerbuthowdoyoureportthatanswer.Youwantthecomputertolightupabillboard(广告信息)orspeakaword.Howwastheanswertobereported?

Youhavetosightonthattoo.Thisanalysismightleadyoutorestatetheprobleminmoreprecisetermssolet’strytodothatnow.LetmerestatetheproblemI’mreallygoingtosolveasthis:

giveanintegernumber.OK,sonowI’vepaidonthekindofnumberit’sgonnabe,it’sgonnabeaninteger,anumberwithoutdecimalpoints(小数点).Typedinfromthekeyboardsoit’snotbuiltin,itisn’tsentfromasatellite,okorsomeotherobscuremethodasitgonnabetypedin,ifitisaneven,write“even”onthescreensonowwe’llspecifyhowtheansweristobereported.Andifit’soddwe’aregonnawrite“odd”onthescreensonowwehavemuchmoreprecisedefinitionofwhattheproblemisgoingtobeandwecanproceedtothinkaboutanalgorithm.Sohereistheone,le

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 幼儿教育 > 幼儿读物

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2