SlideShare a Scribd company logo
1 of 15
ALGORITMA
PEMROGAMAN
CAKUPAN MATERI
1. OVERVIEW DAN PENGERTIAN
2. TIPE DATA DAN VARIABEL
3. EKSPRESI, OPERATOR DAN KONSTANTA
4. IF ATAU PENGAMBILAN KEPUTUSAN
5. PERULANGAN
6. ARRAY
REFERENSI
• Sitorus, L. (2015). Algoritma dan Pemrograman.
Penerbit Andi. Budiyanto, A. (2003).
• Pengantar Algoritma dan Pemrograman.
Ilmukomputer. com.
• Ropianto, M (2017). Algoritma dan Pemrograman.
Penertibit Andi.
OVERVIEW DAN PENGERTIAN
Hardware
Sistem software
Apklikasi software
user
Algoritma Oh Algoritma
Abu Ja'far Muhammad Ibnu Musa Al
Khwarizmi, beliau adalah seorang
ilmuwan, seorang ahli matematika,
astronomi, astrologi, dan juga geografi.
Beliau lahir di tahun 780 dan wafat
sekitar 850-an. Beliau adalah penemu
angka NOL, penulis buku Al-Jabar,
membahas solusi sistematik dari linear
dan notasi kuadrat, yang setelah 500
tahun kemudian baru dimanfaatkan
secara maksimal oleh orang-orang Barat
(Eropa dan Amerika), diperkenalkan
sebagai Sistem Penomoran Posisi Desimal.
Pondasi komputasi dan teknologi modern
• Algoritma adalah Susunan langkah penyelesaian
suatu masalah secara sistematis dan logis
• Dalam praktiknya algoritma digunakan sebagai
suatu urutan langkah-langkah (intruksi maupun
aksi) yang terbatas, digunakan dalam
menyelesaikan suatu permasalahan. Sehingga
secara utuh algoritma merupakan suatu ilmu
yang mempelajari cara penyelesaian masalah
berdasarkan langkah-langkah terbatas, logis dan
sistematis dengan tujuan tertentu
Contoh kasus
• Permasalahannya adalah seperti ini :
Solusinya adalah ...
Langkah 1
• The  Gelas
kosong
Langkah 2
• Kopi  teh
Langkah 3
• Gelas kosong
 kopi
Berikut penyelesaian dalam
algoritmanya ...
• Algortima Tukar_Isi_Gelas
Deklarasi
Terdapat dua gelas (gelas A dan gelas B), gelas A
berisi Kopi dan gelas B berisi Teh.
• Siapkan gelas tambahan, yakni gelas C, untuk
penampungan sementara
• Deskripsi (penyelesaian)
• Tuangkan isi gelas A ke gelas C
• Tungkan isi gelas B ke gelas A
• Tuangkan isi gelas C ke gelas B
KRITERIA ALGORITMA
1. FiniteNess (Keterbatasan)
2. Definiteness (Kepastian)
3. Input (Masukkan)
4. Output (Keluaran)
5. Effectiveness (Efektivitas, Efisiensi)
Donald E. Knuth
STRUKTUR ALGORITMA
1. Sequential (Sekuensial)  Runtunan
2. Branch (Percabangan)  Pemilihan
3. Looping (Pengulangan)
Representasi Algoritma
1. Naratif (langkah penyelesaian ditulis dengan
cerita)
2. Flowchart (Langkah penyelesaian ditulis
dengan urutan yg menggunakan simbol-simbol
khusus)
3. Pseudocode (Langkah penyelesaian ditulis
mirip atau menyerupai program)
CONTOH HITUNG LUAS
• Menggunakan bahasa sehari hari:
1. Mulai
2. Masukkan nilai panjang persegi panjangnya
3. Masukkan nilai lebar persegi panjangnya
4. Hitung luasnya, Luas = Panjang x Lebar
5. Tampilkan hasil perhitungan Luasnya
6. Selesai
• Dalam psedo code jauh lebih sederhana, tidak bisa juga
dibilang simbolis. Begini penyelesaiannya
1. Start
2. Input (Panjang)
3. Input (Lebar)
4. Luas <- Panjang * Lebar
5. Output (Luas)
6. End
tugas
• Buat representasi algoritma untuk mencari luas
segitiga
• Buat di kertas folio tulis dengan tangan jangan
diketik
• Dikumpulkan hari kamis tanggal 2/03/2020 di
elearning algo.
Terima kasih

More Related Content

Featured

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 HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 
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...Applitools
 
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 WorkGetSmarter
 

Featured (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
 

Algoritma Pemrograman

  • 2. CAKUPAN MATERI 1. OVERVIEW DAN PENGERTIAN 2. TIPE DATA DAN VARIABEL 3. EKSPRESI, OPERATOR DAN KONSTANTA 4. IF ATAU PENGAMBILAN KEPUTUSAN 5. PERULANGAN 6. ARRAY
  • 3. REFERENSI • Sitorus, L. (2015). Algoritma dan Pemrograman. Penerbit Andi. Budiyanto, A. (2003). • Pengantar Algoritma dan Pemrograman. Ilmukomputer. com. • Ropianto, M (2017). Algoritma dan Pemrograman. Penertibit Andi.
  • 4. OVERVIEW DAN PENGERTIAN Hardware Sistem software Apklikasi software user
  • 5. Algoritma Oh Algoritma Abu Ja'far Muhammad Ibnu Musa Al Khwarizmi, beliau adalah seorang ilmuwan, seorang ahli matematika, astronomi, astrologi, dan juga geografi. Beliau lahir di tahun 780 dan wafat sekitar 850-an. Beliau adalah penemu angka NOL, penulis buku Al-Jabar, membahas solusi sistematik dari linear dan notasi kuadrat, yang setelah 500 tahun kemudian baru dimanfaatkan secara maksimal oleh orang-orang Barat (Eropa dan Amerika), diperkenalkan sebagai Sistem Penomoran Posisi Desimal. Pondasi komputasi dan teknologi modern
  • 6. • Algoritma adalah Susunan langkah penyelesaian suatu masalah secara sistematis dan logis • Dalam praktiknya algoritma digunakan sebagai suatu urutan langkah-langkah (intruksi maupun aksi) yang terbatas, digunakan dalam menyelesaikan suatu permasalahan. Sehingga secara utuh algoritma merupakan suatu ilmu yang mempelajari cara penyelesaian masalah berdasarkan langkah-langkah terbatas, logis dan sistematis dengan tujuan tertentu
  • 7. Contoh kasus • Permasalahannya adalah seperti ini :
  • 8. Solusinya adalah ... Langkah 1 • The  Gelas kosong Langkah 2 • Kopi  teh Langkah 3 • Gelas kosong  kopi
  • 9. Berikut penyelesaian dalam algoritmanya ... • Algortima Tukar_Isi_Gelas Deklarasi Terdapat dua gelas (gelas A dan gelas B), gelas A berisi Kopi dan gelas B berisi Teh. • Siapkan gelas tambahan, yakni gelas C, untuk penampungan sementara • Deskripsi (penyelesaian) • Tuangkan isi gelas A ke gelas C • Tungkan isi gelas B ke gelas A • Tuangkan isi gelas C ke gelas B
  • 10. KRITERIA ALGORITMA 1. FiniteNess (Keterbatasan) 2. Definiteness (Kepastian) 3. Input (Masukkan) 4. Output (Keluaran) 5. Effectiveness (Efektivitas, Efisiensi) Donald E. Knuth
  • 11. STRUKTUR ALGORITMA 1. Sequential (Sekuensial)  Runtunan 2. Branch (Percabangan)  Pemilihan 3. Looping (Pengulangan)
  • 12. Representasi Algoritma 1. Naratif (langkah penyelesaian ditulis dengan cerita) 2. Flowchart (Langkah penyelesaian ditulis dengan urutan yg menggunakan simbol-simbol khusus) 3. Pseudocode (Langkah penyelesaian ditulis mirip atau menyerupai program)
  • 13. CONTOH HITUNG LUAS • Menggunakan bahasa sehari hari: 1. Mulai 2. Masukkan nilai panjang persegi panjangnya 3. Masukkan nilai lebar persegi panjangnya 4. Hitung luasnya, Luas = Panjang x Lebar 5. Tampilkan hasil perhitungan Luasnya 6. Selesai • Dalam psedo code jauh lebih sederhana, tidak bisa juga dibilang simbolis. Begini penyelesaiannya 1. Start 2. Input (Panjang) 3. Input (Lebar) 4. Luas <- Panjang * Lebar 5. Output (Luas) 6. End
  • 14. tugas • Buat representasi algoritma untuk mencari luas segitiga • Buat di kertas folio tulis dengan tangan jangan diketik • Dikumpulkan hari kamis tanggal 2/03/2020 di elearning algo.