SlideShare uma empresa Scribd logo
1 de 8
Baixar para ler offline
FEDERICO CAPOSANO, FABIO CRUDELI, GABRIELE LUCIANI, MARCO ZAMPOLLI
PathfindingAlgorithmA*
IN INFORMATICA, A* È UN ALGORITMO DI RICERCA SU GRAFI CHE
INDIVIDUA UN PERCORSO DA UN DATO NODO INIZIALE VERSO UN DATO
NODO GOAL, STIMANDO LA MIGLIORE STRADA PERCORRIBILE.
L'ALGORITMO È STATO DESCRITTO NEL 1968 DA PETER HART, NILS
NILSSON, E BERTRAM RAPHAEL.
Cos’èA*?
L'ALGORITMO A* (A-STAR) È UN ALGORITMO DI RICERCA UTILIZZATO
NELL'INTELLIGENZA ARTIFICIALE E NELL'OTTIMIZZAZIONE DI PERCORSI.
FUNZIONA TROVANDO IL PERCORSO PIÙ BREVE TRA DUE PUNTI IN UN
GRAFO O IN UNA MAPPA, TENENDO CONTO DI EVENTUALI OSTACOLI O
COSTI ASSOCIATI AI NODI DEL GRAFO.
Comefunziona?
L'ALGORITMO A* ESPANDE I NODI IN MODO ORDINATO, IN MODO DA ESPANDERE PRIMA I NODI CON UNA VALUTAZIONE MINORE. CIÒ CONSENTE DI
TROVARE IL PERCORSO OTTIMALE (IL PERCORSO CON IL COSTO TOTALE MINIMO) EVITANDO DI ESPLORARE TUTTI I NODI DEL GRAFO.
Laricercadelpercorsomigliore
L'ALGORITMO A* UTILIZZA UNA FUNZIONE DI VALUTAZIONE PER STIMARE IL COSTO DEL PERCORSO PIÙ BREVE DAL NODO INIZIALE ALLA
DESTINAZIONE, ATTRAVERSO IL NODO CORRENTE. QUESTA FUNZIONE PRENDE IN CONSIDERAZIONE DUE COMPONENTI: IL COSTO EFFETTIVO DEL
PERCORSO FINO AL NODO CORRENTE E UNA STIMA DEL COSTO DEL PERCORSO RIMANENTE FINO ALLA DESTINAZIONE.
Laricercadelpercorsomigliore
L'ALGORITMO A* È UN ALGORITMO DI RICERCA INFORMATICA E IL SUO
COSTO DIPENDE DALLE SPECIFICHE DELL'IMPLEMENTAZIONE E DEL
PROBLEMA A CUI È APPLICATO. IN GENERALE, L'ALGORITMO A* HA UNA
COMPLESSITÀ TEMPORALE DI O(B^D).
Costi
L'OBIETTIVO DI A* È QUELLO DI RISOLVERE UN PROBLEMA SCRIVENDO UN
ALGORITMO CON LA MINIMA COMPLESSITÀ POSSIBILE SIA NEL CASO
MEDIO CHE IN QUELLO PESSIMO; QUESTA È PROPRIO LA DEFINIZIONE DI
ALGORITMO OTTIMO.
A*èottimo
Intelligenze artificiali, come nei
motori di ricerca.
L'ALGORITMO A* È SPESSO UTILIZZATO IN GIOCHI DI COMPUTER, IN PARTICOLARE PER IL PATHFINDING (RICERCA DEL PERCORSO) DEI PERSONAGGI
NON GIOCANTI (NPC). TUTTAVIA, VIENE ANCHE UTILIZZATO IN ALTRE APPLICAZIONI, COME LA PIANIFICAZIONE DEI PERCORSI DI ROBOT E LA
RISOLUZIONE DEI PROBLEMI DI OTTIMIZZAZIONE.
Leapplicazioni
Animazione dell'algoritmo A* che esplora il Nord
America cercando un percorso tra Washington
D.C. e Los Angeles.
Mappe e giochi basati sul Web per trovare il
percorso più breve con la massima
efficienza possibile

Mais conteúdo relacionado

Último

Presentazione tre geni della tecnologia informatica
Presentazione tre geni della tecnologia informaticaPresentazione tre geni della tecnologia informatica
Presentazione tre geni della tecnologia informatica
nico07fusco
 
presentazione varietà allotropiche del carbonio.pptx
presentazione varietà allotropiche del carbonio.pptxpresentazione varietà allotropiche del carbonio.pptx
presentazione varietà allotropiche del carbonio.pptx
michelacaporale12345
 

Último (20)

Una breve introduzione ad Elsa Morante, vita e opere
Una breve introduzione ad Elsa Morante, vita e opereUna breve introduzione ad Elsa Morante, vita e opere
Una breve introduzione ad Elsa Morante, vita e opere
 
a scuola di biblioVerifica: come utilizzare il test TRAAP
a scuola di biblioVerifica: come utilizzare il test TRAAPa scuola di biblioVerifica: come utilizzare il test TRAAP
a scuola di biblioVerifica: come utilizzare il test TRAAP
 
Piccole Personetestoitaliano-AuroraPalestini.docx
Piccole Personetestoitaliano-AuroraPalestini.docxPiccole Personetestoitaliano-AuroraPalestini.docx
Piccole Personetestoitaliano-AuroraPalestini.docx
 
Educazione civica-Asia Pancia powerpoint
Educazione civica-Asia Pancia powerpointEducazione civica-Asia Pancia powerpoint
Educazione civica-Asia Pancia powerpoint
 
magia, stregoneria, inquisizione e medicina.pptx
magia, stregoneria, inquisizione e medicina.pptxmagia, stregoneria, inquisizione e medicina.pptx
magia, stregoneria, inquisizione e medicina.pptx
 
TeccarelliLorenzo-PrimadiSteveJobselasuaconcorrenza.pptx
TeccarelliLorenzo-PrimadiSteveJobselasuaconcorrenza.pptxTeccarelliLorenzo-PrimadiSteveJobselasuaconcorrenza.pptx
TeccarelliLorenzo-PrimadiSteveJobselasuaconcorrenza.pptx
 
Palestini Aurora-Steve Jobs,Olivetti e Gates.pptx
Palestini Aurora-Steve Jobs,Olivetti e Gates.pptxPalestini Aurora-Steve Jobs,Olivetti e Gates.pptx
Palestini Aurora-Steve Jobs,Olivetti e Gates.pptx
 
Presentazione tre geni della tecnologia informatica
Presentazione tre geni della tecnologia informaticaPresentazione tre geni della tecnologia informatica
Presentazione tre geni della tecnologia informatica
 
CHIẾN THẮNG KÌ THI TUYỂN SINH VÀO LỚP 10 THPT MÔN NGỮ VĂN - PHAN THẾ HOÀI (36...
CHIẾN THẮNG KÌ THI TUYỂN SINH VÀO LỚP 10 THPT MÔN NGỮ VĂN - PHAN THẾ HOÀI (36...CHIẾN THẮNG KÌ THI TUYỂN SINH VÀO LỚP 10 THPT MÔN NGỮ VĂN - PHAN THẾ HOÀI (36...
CHIẾN THẮNG KÌ THI TUYỂN SINH VÀO LỚP 10 THPT MÔN NGỮ VĂN - PHAN THẾ HOÀI (36...
 
Esame di Stato 2024 - Materiale conferenza online 09 aprile 2024
Esame di Stato 2024 - Materiale conferenza online 09 aprile 2024Esame di Stato 2024 - Materiale conferenza online 09 aprile 2024
Esame di Stato 2024 - Materiale conferenza online 09 aprile 2024
 
Pancia Asia-La vita di Steve Jobs-Adriano Olivetti-Bill Gates.pptx
Pancia Asia-La vita di Steve Jobs-Adriano Olivetti-Bill Gates.pptxPancia Asia-La vita di Steve Jobs-Adriano Olivetti-Bill Gates.pptx
Pancia Asia-La vita di Steve Jobs-Adriano Olivetti-Bill Gates.pptx
 
Storia-CarloMagno-TeccarelliLorenzo.pptx
Storia-CarloMagno-TeccarelliLorenzo.pptxStoria-CarloMagno-TeccarelliLorenzo.pptx
Storia-CarloMagno-TeccarelliLorenzo.pptx
 
TeccarelliLorenzo-Mitodella.cavernaa.pdf
TeccarelliLorenzo-Mitodella.cavernaa.pdfTeccarelliLorenzo-Mitodella.cavernaa.pdf
TeccarelliLorenzo-Mitodella.cavernaa.pdf
 
Gli isotopi scienze naturale seconda pres
Gli isotopi scienze naturale seconda presGli isotopi scienze naturale seconda pres
Gli isotopi scienze naturale seconda pres
 
Le forme allotropiche del C-Palestini e Pancia.docx
Le forme allotropiche del C-Palestini e Pancia.docxLe forme allotropiche del C-Palestini e Pancia.docx
Le forme allotropiche del C-Palestini e Pancia.docx
 
presentazione varietà allotropiche del carbonio.pptx
presentazione varietà allotropiche del carbonio.pptxpresentazione varietà allotropiche del carbonio.pptx
presentazione varietà allotropiche del carbonio.pptx
 
Pancia Asia_relazione laboratorio(forza d'attrito).docx
Pancia Asia_relazione laboratorio(forza d'attrito).docxPancia Asia_relazione laboratorio(forza d'attrito).docx
Pancia Asia_relazione laboratorio(forza d'attrito).docx
 
PalestiniAurora-la conoscenzatestoita.docx
PalestiniAurora-la conoscenzatestoita.docxPalestiniAurora-la conoscenzatestoita.docx
PalestiniAurora-la conoscenzatestoita.docx
 
TeccarelliLorenzo-i4stilidellapitturaromana.docx
TeccarelliLorenzo-i4stilidellapitturaromana.docxTeccarelliLorenzo-i4stilidellapitturaromana.docx
TeccarelliLorenzo-i4stilidellapitturaromana.docx
 
Le forme allotropiche del C-Palestini e Pancia.docx
Le forme allotropiche del C-Palestini e Pancia.docxLe forme allotropiche del C-Palestini e Pancia.docx
Le forme allotropiche del C-Palestini e Pancia.docx
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

A* Algoritmo informatica

  • 1. FEDERICO CAPOSANO, FABIO CRUDELI, GABRIELE LUCIANI, MARCO ZAMPOLLI PathfindingAlgorithmA*
  • 2. IN INFORMATICA, A* È UN ALGORITMO DI RICERCA SU GRAFI CHE INDIVIDUA UN PERCORSO DA UN DATO NODO INIZIALE VERSO UN DATO NODO GOAL, STIMANDO LA MIGLIORE STRADA PERCORRIBILE. L'ALGORITMO È STATO DESCRITTO NEL 1968 DA PETER HART, NILS NILSSON, E BERTRAM RAPHAEL. Cos’èA*?
  • 3. L'ALGORITMO A* (A-STAR) È UN ALGORITMO DI RICERCA UTILIZZATO NELL'INTELLIGENZA ARTIFICIALE E NELL'OTTIMIZZAZIONE DI PERCORSI. FUNZIONA TROVANDO IL PERCORSO PIÙ BREVE TRA DUE PUNTI IN UN GRAFO O IN UNA MAPPA, TENENDO CONTO DI EVENTUALI OSTACOLI O COSTI ASSOCIATI AI NODI DEL GRAFO. Comefunziona?
  • 4. L'ALGORITMO A* ESPANDE I NODI IN MODO ORDINATO, IN MODO DA ESPANDERE PRIMA I NODI CON UNA VALUTAZIONE MINORE. CIÒ CONSENTE DI TROVARE IL PERCORSO OTTIMALE (IL PERCORSO CON IL COSTO TOTALE MINIMO) EVITANDO DI ESPLORARE TUTTI I NODI DEL GRAFO. Laricercadelpercorsomigliore
  • 5. L'ALGORITMO A* UTILIZZA UNA FUNZIONE DI VALUTAZIONE PER STIMARE IL COSTO DEL PERCORSO PIÙ BREVE DAL NODO INIZIALE ALLA DESTINAZIONE, ATTRAVERSO IL NODO CORRENTE. QUESTA FUNZIONE PRENDE IN CONSIDERAZIONE DUE COMPONENTI: IL COSTO EFFETTIVO DEL PERCORSO FINO AL NODO CORRENTE E UNA STIMA DEL COSTO DEL PERCORSO RIMANENTE FINO ALLA DESTINAZIONE. Laricercadelpercorsomigliore
  • 6. L'ALGORITMO A* È UN ALGORITMO DI RICERCA INFORMATICA E IL SUO COSTO DIPENDE DALLE SPECIFICHE DELL'IMPLEMENTAZIONE E DEL PROBLEMA A CUI È APPLICATO. IN GENERALE, L'ALGORITMO A* HA UNA COMPLESSITÀ TEMPORALE DI O(B^D). Costi
  • 7. L'OBIETTIVO DI A* È QUELLO DI RISOLVERE UN PROBLEMA SCRIVENDO UN ALGORITMO CON LA MINIMA COMPLESSITÀ POSSIBILE SIA NEL CASO MEDIO CHE IN QUELLO PESSIMO; QUESTA È PROPRIO LA DEFINIZIONE DI ALGORITMO OTTIMO. A*èottimo
  • 8. Intelligenze artificiali, come nei motori di ricerca. L'ALGORITMO A* È SPESSO UTILIZZATO IN GIOCHI DI COMPUTER, IN PARTICOLARE PER IL PATHFINDING (RICERCA DEL PERCORSO) DEI PERSONAGGI NON GIOCANTI (NPC). TUTTAVIA, VIENE ANCHE UTILIZZATO IN ALTRE APPLICAZIONI, COME LA PIANIFICAZIONE DEI PERCORSI DI ROBOT E LA RISOLUZIONE DEI PROBLEMI DI OTTIMIZZAZIONE. Leapplicazioni Animazione dell'algoritmo A* che esplora il Nord America cercando un percorso tra Washington D.C. e Los Angeles. Mappe e giochi basati sul Web per trovare il percorso più breve con la massima efficienza possibile