Top Banner
 CS111 Project Description  With special  thanks to Frank McCown @ the Harding University  In this project you will be using the knowledge  you gained from lectures and homeworks  and applying them to a lengthier  programming  assignment.  The answers  to some of  your questions  do not strictly reside in this document.  You are encouraged  to look at other sources  for inspiration.  This semester’s  project will involve a biological  simulation.  This is an individual  project,  and as such you will be held to the University’s academic  integrity policies.  You are welcome to discuss strategies  and ideas with other students  (and will be encouraged  to in recitation),  but  you must  code the  project  on your  own. The project  will be divided into Weekly Milestones.  You will have deliverables  due every week as described by the milestone document.  Below is a general  overview of  the project,  as well as Milestone 1. This project is what you make of  it. There are points assigned to each milestone which are further broken down into tasks.  However,  you should not be limited by what we suggest the minimum work required here is. To get the most out of  this project,  I urge you all to push yourselves  to find your limits.  You might surprise yourself!  Good luck! Description You have  just discovered  a new type of  cell in a species of  fish found in the deep waters of  the Mariana Trench.  Under  the microscope,  you notice that in some specimens,  the fish's cells are in a constant  state of  flux, and in others, cell movement has been stabilized.  After consultation  with many of  your colleagues,  you come to the conclusion  that cell movement is governed by a very specific set of  criteria,  which appear below.  You decide to build a computer  simulation  of  cell movement.  This project will guide you through the process  of  doing so. You discover  that cell movement is based on the satisfaction of  individual  cells in a tissue sample.  For now, assume there are only two types of  cells: X cells and O cells. In computer  science parlance,  we will  refer to each type of  cell as an agent  type, and individual  cells as agents. Two populations  of  the two agent types are initially placed into random locations  of  a tissue sample represented  by a grid. After placing all the agents in the grid, each cell is either occupied  by an agent or is empty as shown below. 
4

CS111+Project+Description+Fall+2014

Oct 09, 2015

Download

Documents

sharon smith

xd
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 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