-
CS111ProjectDescriptionWithspecialthankstoFrankMcCown@theHardingUniversity
Inthisprojectyouwillbeusingtheknowledgeyougainedfromlecturesandhomeworksandapplyingthemtoalengthierprogrammingassignment.Theanswerstosomeofyourquestionsdonotstrictlyresideinthisdocument.Youareencouragedtolookatothersourcesforinspiration.Thissemestersprojectwillinvolveabiologicalsimulation.Thisisanindividualproject,andassuchyouwillbeheldtotheUniversitysacademicintegritypolicies.Youarewelcometodiscussstrategiesandideaswithotherstudents(andwillbeencouragedtoinrecitation),butyoumustcodetheprojectonyourown.TheprojectwillbedividedintoWeeklyMilestones.Youwillhavedeliverablesdueeveryweekasdescribedbythemilestonedocument.Belowisageneraloverviewoftheproject,aswellasMilestone1.Thisprojectiswhatyoumakeofit.Therearepointsassignedtoeachmilestonewhicharefurtherbrokendownintotasks.However,youshouldnotbelimitedbywhatwesuggesttheminimumworkrequiredhereis.Togetthemostoutofthisproject,Iurgeyoualltopushyourselvestofindyourlimits.Youmightsurpriseyourself!Goodluck!DescriptionYouhavejustdiscoveredanewtypeofcellinaspeciesoffishfoundinthedeepwatersoftheMarianaTrench.Underthemicroscope,younoticethatinsomespecimens,thefish'scellsareinaconstantstateofflux,andinothers,cellmovementhasbeenstabilized.Afterconsultationwithmanyofyourcolleagues,youcometotheconclusionthatcellmovementisgovernedbyaveryspecificsetofcriteria,whichappearbelow.Youdecidetobuildacomputersimulationofcellmovement.Thisprojectwillguideyouthroughtheprocessofdoingso.Youdiscoverthatcellmovementisbasedonthesatisfactionofindividualcellsinatissuesample.Fornow,assumethereareonlytwotypesofcells:XcellsandOcells.Incomputerscienceparlance,wewillrefertoeachtypeofcellasanagenttype,andindividualcellsasagents.Twopopulationsofthetwoagenttypesareinitiallyplacedintorandomlocationsofatissuesamplerepresentedbyagrid.Afterplacingalltheagentsinthegrid,eachcelliseitheroccupiedbyanagentorisemptyasshownbelow.
-
NowweonethatthatwillthresholdtheagenForexamthan30%FortheragentisfadjacentThepictut).Thenethatinth
WhenanalgorithmbechoseIntheimrightshounoccupwerepre
mustdetermissurroundeapplytoalladtheyaresatswillnotb
mple,ift=30%areX,thenemainderoffinewithbeicells.urebelow(leextX(right)hisexample
nagentisnomcanbeuseen,ortheagmagebelow(owsthenewiedcellsatreviouslysatis
mineifeachedbyatleasagentsintheatisfiedwithesatisfiedw0%,agentXntheagentifthisexplaninginthemi
eft)showsaisnotsatisfiemptycells
tsatisfied,itedtochooseentcouldmleft),alldissconfiguratiorandom.Notsfiedtobeco
agentissatsttpercentemodel,eveh.Notethattwiththeircuissatisfiedifsnotsatisfieation,let'sainorityaslon
satisfiedagiedbecausearenotcoun
tcanbemovethisnewloovetothensatisfiedageonafterallttethatthenomedissatis
tisfiedwithitofagentsthenthoughinthehigherthrrentlocatiofatleast30%ed,anditwiassumeathrngastherea
entbecauseonly25%ofntedwhenc
vedtoanyvocation.Forenearestavailntshaveanhedissatisfinewconfigurfied!
tscurrentlohatarelikeitnrealityevehethresholdon.%ofitsneigllwanttochresholdtofareatleast3
e50%ofX'sfitsneighbocalculatings
vacantlocatiexample,arablelocatioasterisknexedagentsharationmayc
ocation.Asattself.Thisthryonemightd,thehigher
hborsarealhangeitsloc30%.Thism30%ofsimila
neighborsaorsareX(25%imilarity.
oninthegrirandomlysen.xttothem.Tavebeenmocausesomea
tisfiedagenresholdtisothaveadifferthelikeliho
soX.Iffewecationintheeanseveryaragentsin
realsoX(50%ce
may
ntheh
-
AlldissatroundberoundscMoveme
Mileston
InthismdescribetoimplemAssumeyaddressacoordinacontinua
a)Descriinputsanb)Describeenstac)Descriyourinpud)Descrie)Whatdependeaffectho
tisfiedagentegins,anddiontinueuntentwithinthne110pts(ilestone,youthefollowinmenttheseiyouaregiveablebyacoote(0,0)andllyrun"rounbealgorithmndoutputsobehowgivebilized(i.e.ebeanalgoritutsandoutpbetheotheistheboundenton?Canyowlongyour
tsmustbemssatisfiedagilallagentsetissuesam(DueMondauwillcomplngitems.Itsitems.natissuesaordinatesystthelowerrinds"movingmtodetermofyourimpleenasolutioneverycellhathmthatwoputsforyourroperationsdonthenumyoumakesorsimulation
movedinthegentsareonintheneighmplestopsway,Oct27,2etethedesishouldbecle
amplereprestem,e.g.theightmostcangunsatisfiedineifacelloementation.
nto(a),howasbeensatisouldmoveanralgorithm?syou'llneedmberofrounomepredictiwillrun?
sameroundceagainmoborhoodare
whenallcells2014)gnphaseofeartothere
sentedbyaeupperleftmnbereferrecellsuntilaoftypeXlocyouwouldsfied).nunsatisfied?dtocompletndsyouralgoionsabouth
d.Aftertherovedtonewesatisfiedwsaresatisfied
yourprojeceaderofyou
nxngrid.Emostcellcandby(n1,nllcellshaveatedat(i,j)
determineif
dXcelltoav
ethesimulaorithmwillhhowtheinpu
roundiscomlocationsin
withtheirlocd.
ct.Inatextdrdocument
achcellinthnbereferred1).Yoursimbeensatisfiis"satisfied
fanentireti
vacantlocat
ation.havetorun?utstoyours
mplete,anewthegrid.Thation.
document,howyouint
hegridisdtobythemulationshoued.".Determine
issuesample
tion.Whata
?Whatisitimulationw
whese
tend
uld
ethe
ehas
re
will