Cellular Automata Tutorial.docx

上传人:b****5 文档编号:29241311 上传时间:2023-07-21 格式:DOCX 页数:26 大小:73.04KB
下载 相关 举报
Cellular Automata Tutorial.docx_第1页
第1页 / 共26页
Cellular Automata Tutorial.docx_第2页
第2页 / 共26页
Cellular Automata Tutorial.docx_第3页
第3页 / 共26页
Cellular Automata Tutorial.docx_第4页
第4页 / 共26页
Cellular Automata Tutorial.docx_第5页
第5页 / 共26页
点击查看更多>>
下载资源
资源描述

Cellular Automata Tutorial.docx

《Cellular Automata Tutorial.docx》由会员分享,可在线阅读,更多相关《Cellular Automata Tutorial.docx(26页珍藏版)》请在冰豆网上搜索。

Cellular Automata Tutorial.docx

CellularAutomataTutorial

CellularAutomataTutorial

1.Introduction

Fromthetheoreticalpointofview,CellularAutomata(CA)wereintroducedinthelate1940'sbyJohnvonNeumann(vonNeumann,1966;Toffoli,1987)andStanislawUlam.Fromthemorepracticalpointofviewitwasmorelessinthelate1960'swhenJohnHortonConwaydevelopedtheGameofLife(Gardner,1970;Dewdney,1989;Dewdney,1990).

CA'sarediscretedynamicalsystemsandareoftendescribedasacounterparttopartialdifferentialequations,whichhavethecapabilitytodescribecontinuousdynamicalsystems.Themeaningofdiscreteis,thatspace,timeandpropertiesoftheautomatoncanhaveonlyafinite,countablenumberofstates.Thebasicideaisnottotrytodescribeacomplexsystemfrom"above"-todescribeitusingdifficultequations,butsimulatingthissystembyinteractionofcellsfollowingeasyrules.Inotherwords:

Nottodescribeacomplexsystemwithcomplexequations,butletthecomplexityemergebyinteractionofsimpleindividualsfollowingsimplerules.

HencetheessentialpropertiesofaCAare

∙aregularn-dimensionallattice(nisinmostcasesofoneortwodimensions),whereeachcellofthislatticehasadiscretestate,

∙adynamicalbehaviour,describedbysocalledrules.Theserulesdescribethestateofacellforthenexttimestep,dependingonthestatesofthecellsintheneighbourhoodofthecell.

Thefirstsystemextensivelycalculatedoncomputersis-asmentionedabove-theGameofLife.Thisgamebecamethatpopular,thatascientificmagazinepublishedregularlyarticlesaboutthe"behaviour"ofthisgame.Contestswereorganizedtoprovecertainproblems.Inthelate1980'stheinterestonCA'sarisedagain,aspowerfulcomputersbecamewidelyavailable.Todayasetofacceptedapplicationsinsimulationofdynamicalsystemsareavailable.

top

2.AGlanceatDynamicalSystemsandChaosor"AnewSciencenamedComplexity"

NatureandNature'sLawlayhidinnight,

Godsaid,letNewtonbe!

andallwaslight!

ThisproposedepitaphfromAlexanderPopeforIsaacNewtonsgraveshowsthementalattitudeofthe19thcentury.Sincethebeginningofthe20thcenturythescientificcommunityhadtodismiss(withaheavyheart)theideaofthecapabilitytocalculatethefuturestateofaphysicalsystemexactlyifthecurrentstateofthesystemisknownwithahighprecision.

ThisideaiscalledinamorephilosophicalterminologytheLaplacianDemon,referingtoanidealdemon,knowingpreciselythecurrentstateofasystem,mustbeabletoforeseetheexactdevelopmentofthissystem.Inthebackofthemindwasthebelieve,thatsmallerrorsinanalysationofthecurrentsystemwillcausesmallerrorsinextrapolationoffuturedevelopmentofthesystem.)

Iwanttopointoutthattheseideashadtofallregardingafewselectedmilestones,thatshowthenecessityforthechangeoftheparadigm:

∙HenriPoincareandthe"solution"ofthe3-bodyproblem

∙EdwardLorenzproblemofweatherforecast

∙WernerHeisenbergandtheuncertaintyrelation

OscarIItheSwedishking,whowasveryinterestedinmathematicsfoundedapricewonbyPoincareproofing,thatthereisnoclosedformmathematicalsolutionforthisproblem.(Besides:

ThearticleofPoincarewasthatchaotic,thataprintedandpartiallysoldcirculationhastobereprinted,asthelastchangesfromPoincarearrivedthatlate.ThisreprinthastobepaidbyPoincare,sothatthesumhereceivedfromOscarIIwasmorethanspent.

ThecontactofLorenztochaoticsystemsoccurredindoingweatherforecasts.Totellitinfewwords:

tryingdifferentmodels(andtryingtospeedupthecalculations)Lorenzreducedtheprecisionofoneparameter,thinking,thatthiswillleadinlittlereducedaccuracyintheresultofthecalculation.Theastonishingoutcomewasacompletelydifferentresult!

Aconsequencebothmendrawis,thatcomplexdynamicalsystemsoftenshowhugeeffectsonsmallchangesinthestartingconditions.

WernerHeisenbergsupplementsthefinding,thatitisimpossibletomeasurethepositionandspeedofaparticlewithhighprecisionatthesametime.Thiscognitionisoneofthebasisbricksofthequantumtheory.PuttingtheresultsofLorenzandPoincaretogetherwiththeuncertaintyrelationHeisenberg'sonecanseeclearly,thattheLaplacianDemonhaslostit'srighttoexist.Thiswasashockformostofthescientists.Newattemptstotheunderstandingofcomplexdynamicalsystemswerenecessary.WiththeworkofBenoitMandelbrotthenewscienceoffractal(broken)dimensionsandchaosstarted,recentlyamoreunifiedapproachcalledthescienceofcomplexityemerged.

Tryingtogiveadefinitionofcomplexityshowsthedifficultsituationthisnewbranchstucksin.ThephysicistSethLloydfromtheMITfoundthatmorethan30differentdefinitionsofComplexityexist.

NeverthelessadefinitionfromChristopherLangtonfromSantaFeInstituteseemstobeessential,describingComplexityasthesciencetryingtodescribethestatesontheedgeofchaos.Inotherwords,heassumes,thatorderemergesfromsystemsontheedgeofchaos.Inmoregeneraltermsonecanposethequestion:

"Howarisesorderfromchaos?

".

Astherearealotofdifferentstreamsinchaosandcomplexityresearch,itisnotthespaceheretodiscusstheseinterestingdevelopmentsindetail.Ijustfeltthenecessitytogetintotouchwiththeseitems.FormoreseriousintroductionsIcanrecommendMcCauley(1993)andOtt(1994).

top

3.BuildingCellularAutomata

3.1TheCell

ThebasicelementofaCAisthecell.Acellisakindofamemoryelementandstores-tosayitwitheasywords-states.Inthesimplestcase,eachcellcanhavethebinarystates1or0.Inmorecomplexsimulationthecellscanhavemoredifferentstates.(Itiseventhinkable,thateachcellhasmorethanonepropertyorattributeandeachofthesepropertiesorattributescanhavetwoormorestates.)

3.2TheLattice

Thesecellsarearrangedinaspatialweb-alattice.Thesimplestoneistheonedimensional"lattice",meaningthatallcellsarearrangedinalinelikeastringofperls.ThemostcommonCA'sarebuiltinoneortwodimensions.WhereastheonedimensionalCAhasthebigadvantage,thatitisveryeasytovisualize.Thestatesofonetimestepareplottedinonedimension,andthedynamicdevelopmentcanbeshownintheseconddimension.AflatplotofaonedimensionalCAhenceshowsthestatesfromtimestep0totimestepn.ConsideratwodimensionalCA:

atwodimensionalplotcanevidentlyshowonlythestateofonetimestep.Sovisualizingthedynamicofa2DCAisbythatreasonmoredifficult.

Bythatreasonsandbecause1DCA'saregenerallymoreeasytohandle(thereisamuchsmallersetofpossiblerules,comparedto2DCA's,aswillbeexplainedinthenextsection)firstofalltheonedimensionalCA'shavebeenexploitedbetheoreticians.Mosttheoreticalpapersavailabledealwithpropertiesof1DCA's.

3.3Neighbourhoods

Uptonow,thesecellsarrangedinalatticerepresentastaticstate.Tointroducedynamicintothesystem,wehavetoaddrules.The"job"oftheserulesistodefinethestateofthecellsforthenexttimestep.Incellularautomataaruledefinesthestateofacellindependenceoftheneighbourhoodofthecell.

Differentdefinitionofneighbourhoodsarepossible.Consideringatwodimensionallatticethefollowingdefinitionsarecommon:

vonNeumannNeighbourhood

fourcells,thecellaboveandbelow,rightandleftfromeachcellarecalledthevonNeumannneighbourhoodofthiscell.Theradiusofthisdefinitionis1,asonlythenextlayerisconsidered.

MooreNeighbourhood

theMooreneighbourhoodisanenlargementofthevonNeumannneighbourhoodcontainingthediagonalcellstoo.Inthiscase,theradiusr=1too.

ExtendedMooreNeighbourhood

equivalenttodescriptionofMooreneighbourhoodabove,butneighbourhoodreachesoverthedistanceofthenextadjacentcells.Hencether=2(orlarger).

MargolusNeighbourhood

acompletelydifferentapproach:

considers2x2cellsofalatticeatonce.formoredetailstakealookattheApplications

vonNeumannNeighbourhood

MooreNeighbourhood

ExtendendMooreNeighbourhood

Theredcellisthecentercell,thebluecellsaretheneighbourhoodcells.Thestatesofthesecellsareusedtocalculatethenextstateofthe(red)centercellaccordingtothedefinedrule.

Asthenumberofacellsinalatticehastobefinite(bypracticalpurposes)oneproblemoccursconsideringtheproposedneighbourhoodsdescribedabove:

Whattodowithcellsatborders?

Theinfluencedependsonthesizeofthelattice.Togiveanexample:

Ina10x10latticeabout40%ofthecellsarebordercells,ina100x100latticeonlyabout4%ofthecellsareofthatkind.Anyway,thisproblemmustbesolved.Twosolutionsofthisproblemarecommon:

1.Oppositebordersofthelatticeare"stickedtogether".Aonedimensional"line"becomesfollowingthatwayacircle,atwodimensionallatticebecomesatorus.

2.thebordercellsaremirrored:

theconsequencearesymmetricborderproperties.

Themoreusualmethodisthepossibility1.

3.4ApplyingRules

Anexampleof"macroscopic"dynamicresultingfromlocalinteractionis"thewave"ina-saysoccer-stadium.Eachpersonreactsonlyonthe"state"ofhisneighbour(s).Iftheystandup,hewillstanduptoo,andafterashortwhile,hesitsdownagain.Localinteractionleadstoglobaldynamic.Onecanarrangetherulesintwo(three)classes:

1.everygroupofstatesoftheneighbourhoodcellsisrelatedastateofthecorecell.E.g.consideraone-dimensionalCA:

arulecouldbe"011->x0x",whatmeansthatthecorecellbecomesa0

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

当前位置:首页 > PPT模板 > 简洁抽象

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1