SlideShare a Scribd company logo
1 of 21
from pq import *
from search import *
class InformedNode(Node):
"""
Added the goal state as a parameter to the constructor. Also
added a new method to be used in conjunction with a priority
queue.
"""
def __init__(self, goal, state, parent, operator, depth):
Node.__init__(self, state, parent, operator, depth)
self.goal = goal
def priority(self):
"""
Needed to determine where the node should be placed in
the
priority queue. Depends on the current depth of the node
as
well as the estimate of the distance from the current state
to
the goal state.
"""
return self.depth + self.state.heuristic(self.goal)
class InformedSearch(Search):
"""
A general informed search class that uses a priority queue
and
traverses a search tree containing instances of the
InformedNode
class. The problem domain should be based on the
InformedProblemState class.
"""
def __init__(self, initialState, goalState):
self.expansions = 0
self.clearVisitedStates()
self.q = PriorityQueue()
self.goalState = goalState
self.q.enqueue(InformedNode(goalState, initialState,
None, None, 0))
solution = self.execute()
if solution == None:
print("Search failed")
else:
self.showPath(solution)
print("Expanded", self.expansions, "nodes during
search")
def execute(self):
while not self.q.empty():
current = self.q.dequeue()
self.expansions += 1
if self.goalState.equals(current.state):
return current
else:
successors = current.state.applyOperators()
operators = current.state.operatorNames()
for i in range(len(successors)):
if not successors[i].illegal():
n = InformedNode(self.goalState,
successors[i],
current,
operators[i],
current.depth+1)
if n.repeatedState():
del(n)
else:
self.q.enqueue(n)
return None
class InformedProblemState(ProblemState):
"""
An interface class for problem domains used with informed
search.
"""
def heuristic(self, goal):
"""
For use with informed search. Returns the estimated
cost of reaching the goal from this state.
"""
abstract()
Read and complete the activities in Module 4.04. You will look
at the advantages and disadvantages of using various types of
media to communicate your ideas:
1. What does the term "medium" mean when used in the text?
2. What are the two purposes the author has to consider when
communicating ideas?
3. What does the author mean by this statement: "Using
multiple mediums can help spread the message to the most
people possible. Yet that does not mean every medium is
suitable for a certain idea."
4. What are some ways the topic, purpose, and audience of a
message influence the way it is communicated?
5. Create a chart that compares the advantages and
disadvantages of types of media.
Comparing Types of Media
Type of Medium
Advantages
Disadvantages
Text
Audio
Video
Graphics
Static
Dynamic
04.04 Make It Memorable
Directions: View the grading rubric as you complete your work.
Write a reflection about the two DNA presentations.
1. Review the DNA article and interactive in the lesson.
2. Write a paragraph of at least five complete sentences that
answers the following questions:
· What are the advantages and disadvantages of each medium
used for the DNA information?
· Why can it be helpful to present ideas in more than one
medium?
· Which medium did you like better and why?
· Which medium do you feel taught you the information better
and why?
· How do your answers compare with those of your classmates
based on the poll results?
3. Save your work to your computer or drive.
4. Submit your work in 04.04 Make It Memorable.
MJ LANGUAGE ARTS III : LIVING
INNOVATION : 04.04MAKE IT MEMORABLE
How Do I Present?
Competition for public attention is high and increasing. This is
especially true in an age where anyone with access to the
Internet can publish his or her thoughts (whether worth reading
or not). There’s just an amazing amount of information
available. So when you have a message or idea to share with the
world, how do you know the best way to present it?
The answer depends on your topic, purpose, and audience. It
also takes into account the advantages and disadvantages of
various mediums. Using multiple mediums can help spread the
message to the most people possible. Yet that does not mean
every medium is suitable for a certain idea.
How Do I Present?
Kristopher Bronner is an American teen. He supports the idea
that candy doesn’t have to be made of unnatural foods to be
tasty and low priced. He promotes both the innovative candy
company he helped form and the idea that teens can change the
world. Kris uses several mediums to share his message.
Examine these formats to see the advantages and disadvantages
of each.
TextAudioVideoGraphicsStatic MultimediaDynamic
MultimediaSummary
Select each tab to learn about various means of presenting
information.
Text
( newspaper article, formal report)
Advantage
Writers share in-depth information in a text to fully explain
their ideas. People can reread to review details about the topic.
Disadvantage
People must use extended time to read lengthy explanations. A
lack of audio or visual clues can lead readers to misinterpret the
text’s statements.
Audio
( radio broadcast, podcast)
Advantage
Speakers can use vocal inflection to show passion for the topic
and build excitement.
Disadvantage
Sound recordings lack visuals that can support a listener’s
understanding. Listeners may find it dull if a speaker just reads
a report.
Video
( television commercial, TV news segment)
Advantage
Presenters use sights, sounds, and motion to build interest. It
can be very engaging and informative for viewers.
Disadvantage
It takes more time and money to create. Presenters cannot
guarantee people will watch.
Graphics
( graphs, charts, maps)
Advantage
Graphics can simplify complex ideas into easy-to-view chunks.
Colors and shapes can present information in a clear and
attractive manner.
Disadvantage
Poorly designed graphics can confuse the viewer rather than aid
understanding. Graphics provide the big picture but can lack
supportive detail.
Static Multimedia
( posters, billboards)
Advantage
Designers combine written words and images. They can create a
short, memorable message.
Disadvantage
People pass by quickly. Designers cannot include much detail.
Information must be condensed to grab attention.
Dynamic Multimedia
( PowerPoint presentation, website)
Advantage
Designers can combine text, images, and sounds. The format
can engage multiple types of learners. It can include virtually
unlimited information.
Disadvantage
Audience must seek out the information. The format can distract
from the message if it is too flashy or too outdated.
A Final Message About Mediums
You have seen that information may be shared in several
different mediums. Each has its pros and cons. It is wise to
share ideas through several different mediums rather than just
one. This ensures that your message reaches the widest possible
audience.
Evaluating Mediums
Using more than one medium to present information can help
deliver the ideas faster to more people. Yet not all formats are
equally effective for all people. You are familiar with the pros
and cons of each medium. Keep this knowledge in mind as you
view two different presentations about DNA fingerprinting—an
article and an interactive.
DNA Interactive Text Version
Slide 1
There is an image of DNA strands.
Text: DNA
DNA—deoxyribonucleic acid—we all have it in every cell of
our bodies. DNA is similar to a fingerprint—everybody's DNA
is different. (The only exception is identical twins. They have
the same exact DNA.) Scientists and investigators count on
DNA analysis for its accuracy. This unique genetic code can be
found in all body cells, including hair, skin, and blood.
What if you came home one day and discovered your iPod was
not in its usual place? Help us solve the mystery behind a
similar scenario.
Slide 2
There is an image of a small desk with a light and a book.
Text: Oh, no! My iPod is not where I left it last night. Where
could it be?
Slide 3
There is an image of a bedroom with a green chair, a bed, a
desk and an iPod on the floor.
Text: It seems to be on the floor ... I should probably pick it up.
Slide 4
There is an image of a cracked iPod.
Text: But. ... what is this? There's a scratch on the screen! And
there seems to be ... grrrrr ... peanut butter remains!!
Slide 5
There is an image of a young girl and a boy in yellow shirts.
They are playing in a house.
Text: Well, both of my siblings enjoy eating peanut butter
crackers after school. But which one of them did it? Since each
human being has a unique DNA code, and they are not identical
twins, I am going to do DNA testing to catch the culprit!
Slide 6
There is an image of a bathroom sink with 2 hairbrushes.
Text: Aha! Their hairbrushes are just what I need. I'd better take
a closer look ...
Slide 7
There is an image of hair in a pink hairbrush and a brown
hairbrush.
Text: I know that hair has DNA. I will grab a couple of hair
strands and take them into the lab.
Slide 8
There is an image of a laboratory.
Text: Okay, I'm here at the lab. I should open the DNA
analyzer...
Slide 9
There is an image of a DNA analyzer and a slide with 2 strands
of hair.
Text: I need to place the hair samples I collected earlier into the
glass.
Slide 10
There is an image of DNA computer samples and a picture of a
young boy and a young girl.
Text: The results are back. Help me select the person who did
this terrible damage to my iPod.
(If sister is selected) Hmmm ... based on the results, my sister
seems to be innocent. Please try again.
(If brother is selected) Guilty!
Slide 11
There is an image of the Daily News newspaper and an older
man.
Text: DNA evidence exonerates innocent man after 22 years!
Audio: 22 years ago I was convicted of a crime I did not
commit. At the trial, I pleaded innocent. Although my family
believed me, the jury did not. The circumstantial evidence was
too convincing. I have been in jail for 22 long years. I have
missed every family event. Even my lawyer had given up after
several appeals. I finally accepted the fact that jail would be my
only home when a group called “The Innocence Project”
contacted me. They set up a DNA analysis by using a strand of
my hair. When they compared my DNA to the DNA at the scene
of the crime, it was not a match! I was free.
Slide 12
There is an image of the Daily News newspaper and an Egyptian
mummy.
Text: DNA Extracted from 3000-year-old mummy!
Audio: 3400 years ago, I walked this earth. I lived in Egypt and
lived and breathed, just like you do- except that I was Pharaoh.
When I died, my family had my body mummified to preserve
my tissue, skin, and organs. A new pharaoh took over after my
death, and to preserve his power, he erased all information
about my family and me from history. For 3400 years, my
family was forgotten until one day a group of archeologist
found me in my sarcophagus. Using CT scans, they figured out
that I was Tutankhamen. You might know me as King Tut. By
analyzing the DNA of a group of mummies, they figured out
who my family members were. DNA analysis reunited my
family in historically, 3400 years after our deaths.
Slide 13
There is an image of the Daily News newspaper and a two teens.
Text: DNA testing improves health!
Audio: My daily diet? Well … there is nothing I like better than
doughnuts for breakfast, a big juicy hamburger for lunch and
pizza night with my friends … yum! All this changed when I
had my DNA analyzed. The biologist informed me that the
sequencing in my genetic code revealed a dangerous possibility-
I was at risk for developing diabetes in my later life! Armed
with this information, I started exercising every day and eating
my veggies- just like my mom always told me to do. I feel
terrific knowing that I am doing what is best for my future me.
Slide 14
There is an image of a computer and a hand pointing to the
computerized DNA image.
Text: Since the start of DNA analysis, investigators needed a
way to keep track of all the data they were collecting from
crime scenes. So the FBI and the U.S. Department of Justice
developed what’s called the Combined DNA Index System, or
“CODIS” for short. CODIS is a database of DNA records of
convicted offenders. It is used worldwide to share and compare
DNA data. Any forensics laboratory can use CODIS for free to
run a DNA sample against the database to see if there are any
matches. Once a criminal’s DNA code is in the system, it
remains there for identification in future crimes.
Is DNA forensic analysis reliable? Guilty as charged.
Kathryn Holmes, Department of Justice
What if you came home one day and discovered your iPod was
not in its usual place? Instead of resting on your nightstand, you
found it tossed on the floor with a big scratch on the screen.
First, you would examine the scene. Picking the iPod up, you
see it has a peanut butter smudge on it. That’s when you start
making a mental list of potential iPod-scratching suspects.
Since you have a little brother and sister whose favorite
afternoon snack is peanut butter crackers, you determine they
are the prime suspects. But which one committed this offense?
You storm down the stairs to begin your investigation.
When law enforcement is faced with a real crime and must
analyze a crime scene, they take a much more detailed
approach. Using science and technology, they can conduct what
is called a forensic analysis. For example, the police might find
written documents and have the handwriting analyzed by an
expert. They can even use ballistics testing to examine markings
on a bullet to see if it was fired from a suspect’s weapon.
But out of all the methods, the most reliable forensic technique
police use is called DNA fingerprinting. As opposed to
traditional fingerprinting in which the actual fingerprints are
lifted from the crime scene, this type of fingerprinting looks
inside the cell of a human being to determine who committed
the crime.
Scientists and investigators count on DNA fingerprinting for its
accuracy. That’s because DNA is similar to a fingerprint —
everybody’s DNA is different. (The only exception is identical
twins. They have the exact same DNA.) This unique genetic
code can be found in all body cells, including hair, skin, and
blood. That means investigators can examine these types of
evidence found at the scene of the crime, with the hopes of
matching it to a suspect’s DNA.
Although it is widely used today, DNA analysis technology has
not always been around. Scientists developed this method in the
1980s. Since then, police and investigators have used it to help
convict criminals and solve numerous crimes. This technology
has proven useful in solving cold cases, too. Those are cases
that were previously thought to be unsolvable.
1.
But DNA analysis isn’t just for convicting criminals. Over the
past few decades, it has been used to help free prisoners who
were wrongly convicted of a crime. Some of these prisoners
were even on death row. Archeology is another profession that
uses DNA analysis. Ancient peoples are studied using DNA
samples taken from 3,000-year-old mummies. The scientists
determine interesting characteristics, such as the health of the
Egyptian family lineage. A more recent use of DNA analysis
involves preventing health problems before they start. If a
person’s DNA indicates that he or she has a propensity for heart
problems, he or she could start exercising and eating well in
order to avoid getting sick.
Since the start of DNA analysis, investigators needed a way to
keep track of all the data they were collecting from crime
scenes. So the FBI and the U.S. Department of Justice
developed what’s called the “Combined DNA Index System,” or
“CODIS” for short. CODIS is a database of DNA records of
convicted offenders. It is used worldwide to share and compare
DNA data. Any forensics laboratory can use CODIS for free to
run a DNA sample against the database to see if there are any
matches. Once a criminal’s DNA code is in the system, it
remains there for identification in future crimes.
Although DNA fingerprinting would not really be used to solve
the mystery of the scratched iPod, for more serious matters,
investigators around the world agree — when it comes to
reliability, DNA analysis is guilty as charged.
class PriorityQueue:
"""
Implements a heap-style priority queue with O(lg n) enqueue
and
dequeue methods. The priority queue is stored as a list
where
position 0 always contains None. The first actual item is
stored
in position 1. This is necessary so that the list can be treated
as a binary tree and simple calculations can be done to find
the
parent, and left and right sub-trees. The items being stored
are
expected to be instances of a class which has a priority()
method.
"""
def __init__(self):
self.q = [None]
def __str__(self):
result = "Queue contains " + str(len(self.q)-1) + " items"
if not self.empty():
result += "-Minimum item has priority: " + 
str(self.min().priority())
return result
def parent(self, i):
return i//2
def right(self, i):
return (i * 2) + 1
def left(self, i):
return i * 2
def hasLeft(self, i):
return self.left(i) <= len(self.q)-1
def hasRight(self, i):
return self.right(i) <= len(self.q)-1
def empty(self):
return len(self.q) == 1
def swap(self, p1, p2):
self.q[p1], self.q[p2], = self.q[p2], self.q[p1]
def bubbleUp(self,i):
p = self.parent(i)
if i==1 or self.q[i].priority() >= self.q[p].priority():
return
else:
self.swap(i, p)
self.bubbleUp(p)
def bubbleDown(self, i):
if (not self.hasLeft(i)) and (not self.hasRight(i)):
return
elif self.hasLeft(i) and (not self.hasRight(i)):
l = self.left(i)
if self.q[i].priority() > self.q[l].priority():
self.swap(i, l)
self.bubbleDown(l)
else:
l = self.left(i)
r = self.right(i)
key = self.q[i].priority()
if self.q[l].priority() >= key and self.q[r].priority() >=
key:
return
elif self.q[l].priority() <= self.q[r].priority():
self.swap(i, l)
self.bubbleDown(l)
else:
self.swap(i, r)
self.bubbleDown(r)
def min(self):
if self.empty():
raise RunTimeError
return self.q[1]
def dequeue(self):
if self.empty():
raise RunTimeError
result = self.q.pop(1)
self.q.insert(1, self.q.pop(len(self.q)-1))
self.bubbleDown(1)
return result
def enqueue(self, item):
self.q.append(item)
self.bubbleUp(len(self.q)-1)
if __name__ == '__main__':
class Test:
"""
A simple class created to test the priority queue.
The PriorityQueue class expects to store instances
of a class that has a method called priority().
"""
def __init__(self, v):
self.value = v
def __str__(self):
return str(self.value)
def priority(self):
return self.value
print("Creating a PriorityQueue")
pq = PriorityQueue()
print("Check that an empty queue is printable")
print(pq)
print("Inserting 10, 5, 2, 12, 25")
pq.enqueue(Test(10))
pq.enqueue(Test(5))
pq.enqueue(Test(2))
pq.enqueue(Test(12))
pq.enqueue(Test(25))
print(pq)
print("Removing the minimum until empty")
while (not pq.empty()):
print(pq.dequeue())

More Related Content

What's hot

Digital media &amp; society cmst 301 project 4 final exam1. fo
Digital media &amp; society cmst 301 project 4 final exam1. foDigital media &amp; society cmst 301 project 4 final exam1. fo
Digital media &amp; society cmst 301 project 4 final exam1. foANIL247048
 
Technical Writing: Organisation and drafting of a document
Technical Writing: Organisation and drafting of a documentTechnical Writing: Organisation and drafting of a document
Technical Writing: Organisation and drafting of a documentAhmad Hussain
 
E portfolio assignment september 2015
E portfolio assignment september 2015E portfolio assignment september 2015
E portfolio assignment september 2015Tung97Michelle
 
Introduction to technical writing
Introduction to technical writingIntroduction to technical writing
Introduction to technical writingTranieGatil2
 
English homework help
English homework helpEnglish homework help
English homework helproman nnelson
 
Directions for discussion for h.m. and his doctor listen to t
Directions for discussion for h.m. and his doctor listen to tDirections for discussion for h.m. and his doctor listen to t
Directions for discussion for h.m. and his doctor listen to tANIL247048
 
Proposal format
Proposal formatProposal format
Proposal formatMr SMAK
 
Writing a survey report
Writing a survey reportWriting a survey report
Writing a survey reportElena Gómez
 
Lecture 1-technical-writing
Lecture 1-technical-writingLecture 1-technical-writing
Lecture 1-technical-writingRenzoMission
 
Pg. 01 question four assignment #1deadline tuesd
Pg. 01 question four assignment #1deadline tuesdPg. 01 question four assignment #1deadline tuesd
Pg. 01 question four assignment #1deadline tuesdssuser562afc1
 

What's hot (14)

Digital media &amp; society cmst 301 project 4 final exam1. fo
Digital media &amp; society cmst 301 project 4 final exam1. foDigital media &amp; society cmst 301 project 4 final exam1. fo
Digital media &amp; society cmst 301 project 4 final exam1. fo
 
CDE Conference 09/02/2009. P Smith: Study Skills
CDE Conference 09/02/2009. P Smith: Study SkillsCDE Conference 09/02/2009. P Smith: Study Skills
CDE Conference 09/02/2009. P Smith: Study Skills
 
Technical Writing: Organisation and drafting of a document
Technical Writing: Organisation and drafting of a documentTechnical Writing: Organisation and drafting of a document
Technical Writing: Organisation and drafting of a document
 
Toefl writing essay_7212
Toefl writing essay_7212Toefl writing essay_7212
Toefl writing essay_7212
 
English homework help
English homework helpEnglish homework help
English homework help
 
E portfolio assignment september 2015
E portfolio assignment september 2015E portfolio assignment september 2015
E portfolio assignment september 2015
 
Introduction to technical writing
Introduction to technical writingIntroduction to technical writing
Introduction to technical writing
 
English homework help
English homework helpEnglish homework help
English homework help
 
Directions for discussion for h.m. and his doctor listen to t
Directions for discussion for h.m. and his doctor listen to tDirections for discussion for h.m. and his doctor listen to t
Directions for discussion for h.m. and his doctor listen to t
 
Proposal format
Proposal formatProposal format
Proposal format
 
Writing a survey report
Writing a survey reportWriting a survey report
Writing a survey report
 
Chapter 4 technical communication style
Chapter 4   technical communication styleChapter 4   technical communication style
Chapter 4 technical communication style
 
Lecture 1-technical-writing
Lecture 1-technical-writingLecture 1-technical-writing
Lecture 1-technical-writing
 
Pg. 01 question four assignment #1deadline tuesd
Pg. 01 question four assignment #1deadline tuesdPg. 01 question four assignment #1deadline tuesd
Pg. 01 question four assignment #1deadline tuesd
 

Similar to From pq import from search import class informed node(no

Writing Clip Art Animated Free Clipa
Writing Clip Art Animated Free ClipaWriting Clip Art Animated Free Clipa
Writing Clip Art Animated Free ClipaJeff Nelson
 
Writing Essay Papers
Writing Essay PapersWriting Essay Papers
Writing Essay PapersAshley Bonham
 
Pin On Reluctant Homeschool Writers
Pin On Reluctant Homeschool WritersPin On Reluctant Homeschool Writers
Pin On Reluctant Homeschool WritersTonia Wallace
 
2014 Essay Scholarships. Online assignment writing service.
2014 Essay Scholarships. Online assignment writing service.2014 Essay Scholarships. Online assignment writing service.
2014 Essay Scholarships. Online assignment writing service.Courtney Rivera
 
2014 Essay Scholarships
2014 Essay Scholarships2014 Essay Scholarships
2014 Essay ScholarshipsKaela Johnson
 
What Is Thesis In Essay.pdf
What Is Thesis In Essay.pdfWhat Is Thesis In Essay.pdf
What Is Thesis In Essay.pdfCrystal Wright
 
Creating Clarity 3.0: How to Design Great Visual Communication
Creating Clarity 3.0: How to Design Great Visual CommunicationCreating Clarity 3.0: How to Design Great Visual Communication
Creating Clarity 3.0: How to Design Great Visual CommunicationBarry Casey
 
Stat 30100 Media ProjectBig PictureOverview You need to post 1 u.docx
Stat 30100 Media ProjectBig PictureOverview  You need to post 1 u.docxStat 30100 Media ProjectBig PictureOverview  You need to post 1 u.docx
Stat 30100 Media ProjectBig PictureOverview You need to post 1 u.docxrafaelaj1
 
1.2 FMP Proposal 2022.docx
1.2 FMP Proposal 2022.docx1.2 FMP Proposal 2022.docx
1.2 FMP Proposal 2022.docxAndinaBispo2
 
Shuhanhui zhuang desma9_midterm
Shuhanhui zhuang desma9_midtermShuhanhui zhuang desma9_midterm
Shuhanhui zhuang desma9_midtermMilton Zhuang
 
Why use video by david mann
Why use video by david mannWhy use video by david mann
Why use video by david mannDavid Mann
 
Stage 3 - Creating your project
Stage 3 - Creating your projectStage 3 - Creating your project
Stage 3 - Creating your projectc.west
 
Critical thinking in english. how to evaluate webpages
Critical thinking in english. how to evaluate webpagesCritical thinking in english. how to evaluate webpages
Critical thinking in english. how to evaluate webpagesMariangel Carreño
 
Effective presentation toolkit
Effective presentation toolkitEffective presentation toolkit
Effective presentation toolkitqyqing
 
Comparison And Contrast Essay Definition And Example
Comparison And Contrast Essay Definition And ExampleComparison And Contrast Essay Definition And Example
Comparison And Contrast Essay Definition And ExampleTracey Souza
 
Self-Assessment Letter GuidelinesThe following are the guideline.docx
Self-Assessment Letter GuidelinesThe following are the guideline.docxSelf-Assessment Letter GuidelinesThe following are the guideline.docx
Self-Assessment Letter GuidelinesThe following are the guideline.docxkenjordan97598
 

Similar to From pq import from search import class informed node(no (20)

Using Powerpoint
Using PowerpointUsing Powerpoint
Using Powerpoint
 
Writing Clip Art Animated Free Clipa
Writing Clip Art Animated Free ClipaWriting Clip Art Animated Free Clipa
Writing Clip Art Animated Free Clipa
 
Writing Essay Papers
Writing Essay PapersWriting Essay Papers
Writing Essay Papers
 
Pin On Reluctant Homeschool Writers
Pin On Reluctant Homeschool WritersPin On Reluctant Homeschool Writers
Pin On Reluctant Homeschool Writers
 
Get smart!short
Get smart!shortGet smart!short
Get smart!short
 
2014 Essay Scholarships. Online assignment writing service.
2014 Essay Scholarships. Online assignment writing service.2014 Essay Scholarships. Online assignment writing service.
2014 Essay Scholarships. Online assignment writing service.
 
2014 Essay Scholarships
2014 Essay Scholarships2014 Essay Scholarships
2014 Essay Scholarships
 
What Is Thesis In Essay.pdf
What Is Thesis In Essay.pdfWhat Is Thesis In Essay.pdf
What Is Thesis In Essay.pdf
 
Creating Clarity 3.0: How to Design Great Visual Communication
Creating Clarity 3.0: How to Design Great Visual CommunicationCreating Clarity 3.0: How to Design Great Visual Communication
Creating Clarity 3.0: How to Design Great Visual Communication
 
Wpe Sample Essays
Wpe Sample EssaysWpe Sample Essays
Wpe Sample Essays
 
Stat 30100 Media ProjectBig PictureOverview You need to post 1 u.docx
Stat 30100 Media ProjectBig PictureOverview  You need to post 1 u.docxStat 30100 Media ProjectBig PictureOverview  You need to post 1 u.docx
Stat 30100 Media ProjectBig PictureOverview You need to post 1 u.docx
 
1.2 FMP Proposal 2022.docx
1.2 FMP Proposal 2022.docx1.2 FMP Proposal 2022.docx
1.2 FMP Proposal 2022.docx
 
Shuhanhui zhuang desma9_midterm
Shuhanhui zhuang desma9_midtermShuhanhui zhuang desma9_midterm
Shuhanhui zhuang desma9_midterm
 
Why use video by david mann
Why use video by david mannWhy use video by david mann
Why use video by david mann
 
Stage 3 - Creating your project
Stage 3 - Creating your projectStage 3 - Creating your project
Stage 3 - Creating your project
 
Critical thinking in english. how to evaluate webpages
Critical thinking in english. how to evaluate webpagesCritical thinking in english. how to evaluate webpages
Critical thinking in english. how to evaluate webpages
 
Effective presentation toolkit
Effective presentation toolkitEffective presentation toolkit
Effective presentation toolkit
 
What is doodle art
What is doodle artWhat is doodle art
What is doodle art
 
Comparison And Contrast Essay Definition And Example
Comparison And Contrast Essay Definition And ExampleComparison And Contrast Essay Definition And Example
Comparison And Contrast Essay Definition And Example
 
Self-Assessment Letter GuidelinesThe following are the guideline.docx
Self-Assessment Letter GuidelinesThe following are the guideline.docxSelf-Assessment Letter GuidelinesThe following are the guideline.docx
Self-Assessment Letter GuidelinesThe following are the guideline.docx
 

More from joney4

. in 150-175 words......Explain whether you prefer the representat.docx
. in 150-175 words......Explain whether you prefer the representat.docx. in 150-175 words......Explain whether you prefer the representat.docx
. in 150-175 words......Explain whether you prefer the representat.docxjoney4
 
-What issues could arise when a panicked public believes it has been.docx
-What issues could arise when a panicked public believes it has been.docx-What issues could arise when a panicked public believes it has been.docx
-What issues could arise when a panicked public believes it has been.docxjoney4
 
-The topic is about Hopi American Native tribe-Write an effective .docx
-The topic is about Hopi American Native tribe-Write an effective .docx-The topic is about Hopi American Native tribe-Write an effective .docx
-The topic is about Hopi American Native tribe-Write an effective .docxjoney4
 
-The focus of this assignment is identifying patient’s needs and ana.docx
-The focus of this assignment is identifying patient’s needs and ana.docx-The focus of this assignment is identifying patient’s needs and ana.docx
-The focus of this assignment is identifying patient’s needs and ana.docxjoney4
 
-Health Behavior Project ( Increase the habit of drinking wa.docx
-Health Behavior Project ( Increase the habit of drinking wa.docx-Health Behavior Project ( Increase the habit of drinking wa.docx
-Health Behavior Project ( Increase the habit of drinking wa.docxjoney4
 
. Make sure you explain how the following elements emerge within t.docx
. Make sure you explain how the following elements emerge within t.docx. Make sure you explain how the following elements emerge within t.docx
. Make sure you explain how the following elements emerge within t.docxjoney4
 
-2.5 pages-2 hours-APA formatWill be checking for plag.docx
-2.5 pages-2 hours-APA formatWill be checking for plag.docx-2.5 pages-2 hours-APA formatWill be checking for plag.docx
-2.5 pages-2 hours-APA formatWill be checking for plag.docxjoney4
 
-2.5 pages-2 hours-APA formatWill be checking for plagiarism.docx
-2.5 pages-2 hours-APA formatWill be checking for plagiarism.docx-2.5 pages-2 hours-APA formatWill be checking for plagiarism.docx
-2.5 pages-2 hours-APA formatWill be checking for plagiarism.docxjoney4
 
-2- 2.5pages- Times New Roman, 12 font-APA format (At least 4 .docx
-2- 2.5pages- Times New Roman, 12 font-APA format (At least 4 .docx-2- 2.5pages- Times New Roman, 12 font-APA format (At least 4 .docx
-2- 2.5pages- Times New Roman, 12 font-APA format (At least 4 .docxjoney4
 
- Vermeers Woman Holding a Balance (Figure 25-19)- Discuss the .docx
- Vermeers Woman Holding a Balance (Figure 25-19)- Discuss the .docx- Vermeers Woman Holding a Balance (Figure 25-19)- Discuss the .docx
- Vermeers Woman Holding a Balance (Figure 25-19)- Discuss the .docxjoney4
 
-Write a 5-6 page paper (other then the opning page)- Using Voltai.docx
-Write a 5-6 page paper (other then the opning page)- Using Voltai.docx-Write a 5-6 page paper (other then the opning page)- Using Voltai.docx
-Write a 5-6 page paper (other then the opning page)- Using Voltai.docxjoney4
 
-Executive summary A brief summary of the case (what the case.docx
-Executive summary A brief summary of the case (what the case.docx-Executive summary A brief summary of the case (what the case.docx
-Executive summary A brief summary of the case (what the case.docxjoney4
 
- the body of the essay should contain the meat of the argument. you.docx
- the body of the essay should contain the meat of the argument. you.docx- the body of the essay should contain the meat of the argument. you.docx
- the body of the essay should contain the meat of the argument. you.docxjoney4
 
,submit a two page class reflections assignment in which you wil.docx
,submit a two page class reflections assignment in which you wil.docx,submit a two page class reflections assignment in which you wil.docx
,submit a two page class reflections assignment in which you wil.docxjoney4
 
,I’m doing research writing about the benefits of social media.docx
,I’m doing research writing about the benefits of social media.docx,I’m doing research writing about the benefits of social media.docx
,I’m doing research writing about the benefits of social media.docxjoney4
 
,I will attach the word file and it has all the instructions.I n.docx
,I will attach the word file and it has all the instructions.I n.docx,I will attach the word file and it has all the instructions.I n.docx
,I will attach the word file and it has all the instructions.I n.docxjoney4
 
,Check out attachments and read instructions before you make Hand .docx
,Check out attachments and read instructions before you make Hand .docx,Check out attachments and read instructions before you make Hand .docx
,Check out attachments and read instructions before you make Hand .docxjoney4
 
, you will pick a different disciplinary perspective from the .docx
, you will pick a different disciplinary perspective from the .docx, you will pick a different disciplinary perspective from the .docx
, you will pick a different disciplinary perspective from the .docxjoney4
 
,I’m doing research writing about the benefits of social media ..docx
,I’m doing research writing about the benefits of social media ..docx,I’m doing research writing about the benefits of social media ..docx
,I’m doing research writing about the benefits of social media ..docxjoney4
 
,Check out attachments and read instructions before you make Hand.docx
,Check out attachments and read instructions before you make Hand.docx,Check out attachments and read instructions before you make Hand.docx
,Check out attachments and read instructions before you make Hand.docxjoney4
 

More from joney4 (20)

. in 150-175 words......Explain whether you prefer the representat.docx
. in 150-175 words......Explain whether you prefer the representat.docx. in 150-175 words......Explain whether you prefer the representat.docx
. in 150-175 words......Explain whether you prefer the representat.docx
 
-What issues could arise when a panicked public believes it has been.docx
-What issues could arise when a panicked public believes it has been.docx-What issues could arise when a panicked public believes it has been.docx
-What issues could arise when a panicked public believes it has been.docx
 
-The topic is about Hopi American Native tribe-Write an effective .docx
-The topic is about Hopi American Native tribe-Write an effective .docx-The topic is about Hopi American Native tribe-Write an effective .docx
-The topic is about Hopi American Native tribe-Write an effective .docx
 
-The focus of this assignment is identifying patient’s needs and ana.docx
-The focus of this assignment is identifying patient’s needs and ana.docx-The focus of this assignment is identifying patient’s needs and ana.docx
-The focus of this assignment is identifying patient’s needs and ana.docx
 
-Health Behavior Project ( Increase the habit of drinking wa.docx
-Health Behavior Project ( Increase the habit of drinking wa.docx-Health Behavior Project ( Increase the habit of drinking wa.docx
-Health Behavior Project ( Increase the habit of drinking wa.docx
 
. Make sure you explain how the following elements emerge within t.docx
. Make sure you explain how the following elements emerge within t.docx. Make sure you explain how the following elements emerge within t.docx
. Make sure you explain how the following elements emerge within t.docx
 
-2.5 pages-2 hours-APA formatWill be checking for plag.docx
-2.5 pages-2 hours-APA formatWill be checking for plag.docx-2.5 pages-2 hours-APA formatWill be checking for plag.docx
-2.5 pages-2 hours-APA formatWill be checking for plag.docx
 
-2.5 pages-2 hours-APA formatWill be checking for plagiarism.docx
-2.5 pages-2 hours-APA formatWill be checking for plagiarism.docx-2.5 pages-2 hours-APA formatWill be checking for plagiarism.docx
-2.5 pages-2 hours-APA formatWill be checking for plagiarism.docx
 
-2- 2.5pages- Times New Roman, 12 font-APA format (At least 4 .docx
-2- 2.5pages- Times New Roman, 12 font-APA format (At least 4 .docx-2- 2.5pages- Times New Roman, 12 font-APA format (At least 4 .docx
-2- 2.5pages- Times New Roman, 12 font-APA format (At least 4 .docx
 
- Vermeers Woman Holding a Balance (Figure 25-19)- Discuss the .docx
- Vermeers Woman Holding a Balance (Figure 25-19)- Discuss the .docx- Vermeers Woman Holding a Balance (Figure 25-19)- Discuss the .docx
- Vermeers Woman Holding a Balance (Figure 25-19)- Discuss the .docx
 
-Write a 5-6 page paper (other then the opning page)- Using Voltai.docx
-Write a 5-6 page paper (other then the opning page)- Using Voltai.docx-Write a 5-6 page paper (other then the opning page)- Using Voltai.docx
-Write a 5-6 page paper (other then the opning page)- Using Voltai.docx
 
-Executive summary A brief summary of the case (what the case.docx
-Executive summary A brief summary of the case (what the case.docx-Executive summary A brief summary of the case (what the case.docx
-Executive summary A brief summary of the case (what the case.docx
 
- the body of the essay should contain the meat of the argument. you.docx
- the body of the essay should contain the meat of the argument. you.docx- the body of the essay should contain the meat of the argument. you.docx
- the body of the essay should contain the meat of the argument. you.docx
 
,submit a two page class reflections assignment in which you wil.docx
,submit a two page class reflections assignment in which you wil.docx,submit a two page class reflections assignment in which you wil.docx
,submit a two page class reflections assignment in which you wil.docx
 
,I’m doing research writing about the benefits of social media.docx
,I’m doing research writing about the benefits of social media.docx,I’m doing research writing about the benefits of social media.docx
,I’m doing research writing about the benefits of social media.docx
 
,I will attach the word file and it has all the instructions.I n.docx
,I will attach the word file and it has all the instructions.I n.docx,I will attach the word file and it has all the instructions.I n.docx
,I will attach the word file and it has all the instructions.I n.docx
 
,Check out attachments and read instructions before you make Hand .docx
,Check out attachments and read instructions before you make Hand .docx,Check out attachments and read instructions before you make Hand .docx
,Check out attachments and read instructions before you make Hand .docx
 
, you will pick a different disciplinary perspective from the .docx
, you will pick a different disciplinary perspective from the .docx, you will pick a different disciplinary perspective from the .docx
, you will pick a different disciplinary perspective from the .docx
 
,I’m doing research writing about the benefits of social media ..docx
,I’m doing research writing about the benefits of social media ..docx,I’m doing research writing about the benefits of social media ..docx
,I’m doing research writing about the benefits of social media ..docx
 
,Check out attachments and read instructions before you make Hand.docx
,Check out attachments and read instructions before you make Hand.docx,Check out attachments and read instructions before you make Hand.docx
,Check out attachments and read instructions before you make Hand.docx
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

From pq import from search import class informed node(no

  • 1. from pq import * from search import * class InformedNode(Node): """ Added the goal state as a parameter to the constructor. Also added a new method to be used in conjunction with a priority queue. """ def __init__(self, goal, state, parent, operator, depth): Node.__init__(self, state, parent, operator, depth) self.goal = goal def priority(self): """ Needed to determine where the node should be placed in the priority queue. Depends on the current depth of the node as
  • 2. well as the estimate of the distance from the current state to the goal state. """ return self.depth + self.state.heuristic(self.goal) class InformedSearch(Search): """ A general informed search class that uses a priority queue and traverses a search tree containing instances of the InformedNode class. The problem domain should be based on the InformedProblemState class. """ def __init__(self, initialState, goalState): self.expansions = 0 self.clearVisitedStates() self.q = PriorityQueue() self.goalState = goalState
  • 3. self.q.enqueue(InformedNode(goalState, initialState, None, None, 0)) solution = self.execute() if solution == None: print("Search failed") else: self.showPath(solution) print("Expanded", self.expansions, "nodes during search") def execute(self): while not self.q.empty(): current = self.q.dequeue() self.expansions += 1 if self.goalState.equals(current.state): return current else: successors = current.state.applyOperators() operators = current.state.operatorNames() for i in range(len(successors)):
  • 4. if not successors[i].illegal(): n = InformedNode(self.goalState, successors[i], current, operators[i], current.depth+1) if n.repeatedState(): del(n) else: self.q.enqueue(n) return None class InformedProblemState(ProblemState): """ An interface class for problem domains used with informed search. """
  • 5. def heuristic(self, goal): """ For use with informed search. Returns the estimated cost of reaching the goal from this state. """ abstract() Read and complete the activities in Module 4.04. You will look at the advantages and disadvantages of using various types of media to communicate your ideas: 1. What does the term "medium" mean when used in the text? 2. What are the two purposes the author has to consider when communicating ideas? 3. What does the author mean by this statement: "Using multiple mediums can help spread the message to the most people possible. Yet that does not mean every medium is suitable for a certain idea." 4. What are some ways the topic, purpose, and audience of a message influence the way it is communicated? 5. Create a chart that compares the advantages and disadvantages of types of media. Comparing Types of Media Type of Medium Advantages Disadvantages Text
  • 6. Audio Video Graphics Static Dynamic 04.04 Make It Memorable Directions: View the grading rubric as you complete your work. Write a reflection about the two DNA presentations. 1. Review the DNA article and interactive in the lesson. 2. Write a paragraph of at least five complete sentences that answers the following questions:
  • 7. · What are the advantages and disadvantages of each medium used for the DNA information? · Why can it be helpful to present ideas in more than one medium? · Which medium did you like better and why? · Which medium do you feel taught you the information better and why? · How do your answers compare with those of your classmates based on the poll results? 3. Save your work to your computer or drive. 4. Submit your work in 04.04 Make It Memorable. MJ LANGUAGE ARTS III : LIVING INNOVATION : 04.04MAKE IT MEMORABLE How Do I Present? Competition for public attention is high and increasing. This is especially true in an age where anyone with access to the Internet can publish his or her thoughts (whether worth reading or not). There’s just an amazing amount of information available. So when you have a message or idea to share with the world, how do you know the best way to present it? The answer depends on your topic, purpose, and audience. It also takes into account the advantages and disadvantages of various mediums. Using multiple mediums can help spread the message to the most people possible. Yet that does not mean every medium is suitable for a certain idea. How Do I Present? Kristopher Bronner is an American teen. He supports the idea that candy doesn’t have to be made of unnatural foods to be tasty and low priced. He promotes both the innovative candy company he helped form and the idea that teens can change the world. Kris uses several mediums to share his message. Examine these formats to see the advantages and disadvantages of each.
  • 8. TextAudioVideoGraphicsStatic MultimediaDynamic MultimediaSummary Select each tab to learn about various means of presenting information. Text ( newspaper article, formal report) Advantage Writers share in-depth information in a text to fully explain their ideas. People can reread to review details about the topic. Disadvantage People must use extended time to read lengthy explanations. A lack of audio or visual clues can lead readers to misinterpret the text’s statements. Audio ( radio broadcast, podcast) Advantage Speakers can use vocal inflection to show passion for the topic and build excitement. Disadvantage Sound recordings lack visuals that can support a listener’s understanding. Listeners may find it dull if a speaker just reads a report. Video ( television commercial, TV news segment) Advantage Presenters use sights, sounds, and motion to build interest. It can be very engaging and informative for viewers. Disadvantage It takes more time and money to create. Presenters cannot guarantee people will watch.
  • 9. Graphics ( graphs, charts, maps) Advantage Graphics can simplify complex ideas into easy-to-view chunks. Colors and shapes can present information in a clear and attractive manner. Disadvantage Poorly designed graphics can confuse the viewer rather than aid understanding. Graphics provide the big picture but can lack supportive detail. Static Multimedia ( posters, billboards) Advantage Designers combine written words and images. They can create a short, memorable message. Disadvantage People pass by quickly. Designers cannot include much detail. Information must be condensed to grab attention. Dynamic Multimedia ( PowerPoint presentation, website) Advantage Designers can combine text, images, and sounds. The format can engage multiple types of learners. It can include virtually unlimited information. Disadvantage Audience must seek out the information. The format can distract from the message if it is too flashy or too outdated. A Final Message About Mediums You have seen that information may be shared in several
  • 10. different mediums. Each has its pros and cons. It is wise to share ideas through several different mediums rather than just one. This ensures that your message reaches the widest possible audience. Evaluating Mediums Using more than one medium to present information can help deliver the ideas faster to more people. Yet not all formats are equally effective for all people. You are familiar with the pros and cons of each medium. Keep this knowledge in mind as you view two different presentations about DNA fingerprinting—an article and an interactive. DNA Interactive Text Version Slide 1 There is an image of DNA strands. Text: DNA DNA—deoxyribonucleic acid—we all have it in every cell of our bodies. DNA is similar to a fingerprint—everybody's DNA is different. (The only exception is identical twins. They have the same exact DNA.) Scientists and investigators count on DNA analysis for its accuracy. This unique genetic code can be found in all body cells, including hair, skin, and blood. What if you came home one day and discovered your iPod was not in its usual place? Help us solve the mystery behind a similar scenario. Slide 2 There is an image of a small desk with a light and a book. Text: Oh, no! My iPod is not where I left it last night. Where could it be? Slide 3 There is an image of a bedroom with a green chair, a bed, a
  • 11. desk and an iPod on the floor. Text: It seems to be on the floor ... I should probably pick it up. Slide 4 There is an image of a cracked iPod. Text: But. ... what is this? There's a scratch on the screen! And there seems to be ... grrrrr ... peanut butter remains!! Slide 5 There is an image of a young girl and a boy in yellow shirts. They are playing in a house. Text: Well, both of my siblings enjoy eating peanut butter crackers after school. But which one of them did it? Since each human being has a unique DNA code, and they are not identical twins, I am going to do DNA testing to catch the culprit! Slide 6 There is an image of a bathroom sink with 2 hairbrushes. Text: Aha! Their hairbrushes are just what I need. I'd better take a closer look ... Slide 7 There is an image of hair in a pink hairbrush and a brown hairbrush. Text: I know that hair has DNA. I will grab a couple of hair strands and take them into the lab. Slide 8 There is an image of a laboratory. Text: Okay, I'm here at the lab. I should open the DNA analyzer... Slide 9 There is an image of a DNA analyzer and a slide with 2 strands of hair. Text: I need to place the hair samples I collected earlier into the glass. Slide 10 There is an image of DNA computer samples and a picture of a young boy and a young girl. Text: The results are back. Help me select the person who did this terrible damage to my iPod.
  • 12. (If sister is selected) Hmmm ... based on the results, my sister seems to be innocent. Please try again. (If brother is selected) Guilty! Slide 11 There is an image of the Daily News newspaper and an older man. Text: DNA evidence exonerates innocent man after 22 years! Audio: 22 years ago I was convicted of a crime I did not commit. At the trial, I pleaded innocent. Although my family believed me, the jury did not. The circumstantial evidence was too convincing. I have been in jail for 22 long years. I have missed every family event. Even my lawyer had given up after several appeals. I finally accepted the fact that jail would be my only home when a group called “The Innocence Project” contacted me. They set up a DNA analysis by using a strand of my hair. When they compared my DNA to the DNA at the scene of the crime, it was not a match! I was free. Slide 12 There is an image of the Daily News newspaper and an Egyptian mummy. Text: DNA Extracted from 3000-year-old mummy! Audio: 3400 years ago, I walked this earth. I lived in Egypt and lived and breathed, just like you do- except that I was Pharaoh. When I died, my family had my body mummified to preserve my tissue, skin, and organs. A new pharaoh took over after my death, and to preserve his power, he erased all information about my family and me from history. For 3400 years, my family was forgotten until one day a group of archeologist found me in my sarcophagus. Using CT scans, they figured out that I was Tutankhamen. You might know me as King Tut. By analyzing the DNA of a group of mummies, they figured out who my family members were. DNA analysis reunited my family in historically, 3400 years after our deaths. Slide 13 There is an image of the Daily News newspaper and a two teens. Text: DNA testing improves health!
  • 13. Audio: My daily diet? Well … there is nothing I like better than doughnuts for breakfast, a big juicy hamburger for lunch and pizza night with my friends … yum! All this changed when I had my DNA analyzed. The biologist informed me that the sequencing in my genetic code revealed a dangerous possibility- I was at risk for developing diabetes in my later life! Armed with this information, I started exercising every day and eating my veggies- just like my mom always told me to do. I feel terrific knowing that I am doing what is best for my future me. Slide 14 There is an image of a computer and a hand pointing to the computerized DNA image. Text: Since the start of DNA analysis, investigators needed a way to keep track of all the data they were collecting from crime scenes. So the FBI and the U.S. Department of Justice developed what’s called the Combined DNA Index System, or “CODIS” for short. CODIS is a database of DNA records of convicted offenders. It is used worldwide to share and compare DNA data. Any forensics laboratory can use CODIS for free to run a DNA sample against the database to see if there are any matches. Once a criminal’s DNA code is in the system, it remains there for identification in future crimes. Is DNA forensic analysis reliable? Guilty as charged. Kathryn Holmes, Department of Justice What if you came home one day and discovered your iPod was not in its usual place? Instead of resting on your nightstand, you found it tossed on the floor with a big scratch on the screen. First, you would examine the scene. Picking the iPod up, you see it has a peanut butter smudge on it. That’s when you start making a mental list of potential iPod-scratching suspects. Since you have a little brother and sister whose favorite afternoon snack is peanut butter crackers, you determine they are the prime suspects. But which one committed this offense? You storm down the stairs to begin your investigation. When law enforcement is faced with a real crime and must
  • 14. analyze a crime scene, they take a much more detailed approach. Using science and technology, they can conduct what is called a forensic analysis. For example, the police might find written documents and have the handwriting analyzed by an expert. They can even use ballistics testing to examine markings on a bullet to see if it was fired from a suspect’s weapon. But out of all the methods, the most reliable forensic technique police use is called DNA fingerprinting. As opposed to traditional fingerprinting in which the actual fingerprints are lifted from the crime scene, this type of fingerprinting looks inside the cell of a human being to determine who committed the crime. Scientists and investigators count on DNA fingerprinting for its accuracy. That’s because DNA is similar to a fingerprint — everybody’s DNA is different. (The only exception is identical twins. They have the exact same DNA.) This unique genetic code can be found in all body cells, including hair, skin, and blood. That means investigators can examine these types of evidence found at the scene of the crime, with the hopes of matching it to a suspect’s DNA. Although it is widely used today, DNA analysis technology has not always been around. Scientists developed this method in the 1980s. Since then, police and investigators have used it to help convict criminals and solve numerous crimes. This technology has proven useful in solving cold cases, too. Those are cases that were previously thought to be unsolvable. 1. But DNA analysis isn’t just for convicting criminals. Over the past few decades, it has been used to help free prisoners who were wrongly convicted of a crime. Some of these prisoners were even on death row. Archeology is another profession that uses DNA analysis. Ancient peoples are studied using DNA samples taken from 3,000-year-old mummies. The scientists determine interesting characteristics, such as the health of the Egyptian family lineage. A more recent use of DNA analysis involves preventing health problems before they start. If a
  • 15. person’s DNA indicates that he or she has a propensity for heart problems, he or she could start exercising and eating well in order to avoid getting sick. Since the start of DNA analysis, investigators needed a way to keep track of all the data they were collecting from crime scenes. So the FBI and the U.S. Department of Justice developed what’s called the “Combined DNA Index System,” or “CODIS” for short. CODIS is a database of DNA records of convicted offenders. It is used worldwide to share and compare DNA data. Any forensics laboratory can use CODIS for free to run a DNA sample against the database to see if there are any matches. Once a criminal’s DNA code is in the system, it remains there for identification in future crimes. Although DNA fingerprinting would not really be used to solve the mystery of the scratched iPod, for more serious matters, investigators around the world agree — when it comes to reliability, DNA analysis is guilty as charged. class PriorityQueue: """ Implements a heap-style priority queue with O(lg n) enqueue and dequeue methods. The priority queue is stored as a list where position 0 always contains None. The first actual item is stored in position 1. This is necessary so that the list can be treated as a binary tree and simple calculations can be done to find the
  • 16. parent, and left and right sub-trees. The items being stored are expected to be instances of a class which has a priority() method. """ def __init__(self): self.q = [None] def __str__(self): result = "Queue contains " + str(len(self.q)-1) + " items" if not self.empty(): result += "-Minimum item has priority: " + str(self.min().priority()) return result def parent(self, i): return i//2 def right(self, i): return (i * 2) + 1 def left(self, i): return i * 2
  • 17. def hasLeft(self, i): return self.left(i) <= len(self.q)-1 def hasRight(self, i): return self.right(i) <= len(self.q)-1 def empty(self): return len(self.q) == 1 def swap(self, p1, p2): self.q[p1], self.q[p2], = self.q[p2], self.q[p1] def bubbleUp(self,i): p = self.parent(i) if i==1 or self.q[i].priority() >= self.q[p].priority(): return else: self.swap(i, p) self.bubbleUp(p) def bubbleDown(self, i): if (not self.hasLeft(i)) and (not self.hasRight(i)): return
  • 18. elif self.hasLeft(i) and (not self.hasRight(i)): l = self.left(i) if self.q[i].priority() > self.q[l].priority(): self.swap(i, l) self.bubbleDown(l) else: l = self.left(i) r = self.right(i) key = self.q[i].priority() if self.q[l].priority() >= key and self.q[r].priority() >= key: return elif self.q[l].priority() <= self.q[r].priority(): self.swap(i, l) self.bubbleDown(l) else: self.swap(i, r) self.bubbleDown(r) def min(self):
  • 19. if self.empty(): raise RunTimeError return self.q[1] def dequeue(self): if self.empty(): raise RunTimeError result = self.q.pop(1) self.q.insert(1, self.q.pop(len(self.q)-1)) self.bubbleDown(1) return result def enqueue(self, item): self.q.append(item) self.bubbleUp(len(self.q)-1) if __name__ == '__main__': class Test: """ A simple class created to test the priority queue.
  • 20. The PriorityQueue class expects to store instances of a class that has a method called priority(). """ def __init__(self, v): self.value = v def __str__(self): return str(self.value) def priority(self): return self.value print("Creating a PriorityQueue") pq = PriorityQueue() print("Check that an empty queue is printable") print(pq) print("Inserting 10, 5, 2, 12, 25") pq.enqueue(Test(10)) pq.enqueue(Test(5)) pq.enqueue(Test(2))
  • 21. pq.enqueue(Test(12)) pq.enqueue(Test(25)) print(pq) print("Removing the minimum until empty") while (not pq.empty()): print(pq.dequeue())