Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tugas Logika Algoritma(Sorting)
#1
Nama  :Rina Mardiana
Kelas  :12.1A.21
NIM   :12172053


Attached Files
.pdf   TUGAS LOGIKA ALGORITMA SORTING.pdf (Size: 94.55 KB / Downloads: 5)
Reply
#2
NAMA:IMAS MAULITA
KELAS:12.1A.21
NIM:12170060


1.100,1,4,8,9,12,14,13,54,33,44,21,28
2.78,87,85,72,14,12,99,22,18


  BUBBBLE SHORT
  1.100,1,4,8,9,12,14,13,54,33,44,21,28
=====================================
A.1,100,4,8,9,12,14,13,54,33,44,21,28
B.1,4,100,8,9,12,14,13,54,33,44,21,28
C.1,4,8,100,9,12,14,13,54,33,44,21,28
D.1,4,8,9,100,12,14,13,54,33,44,21,28
E.1,4,8,9,12,100,14,13,54,33,44,21,28
F.1,4,8,9,12,13,100,14,54,33,44,21,28
G.1,4,8,9,12,13,14,100,54,33,44,21,28
H.1,4,8,9,12,13,14,21,100,54,33,44,28
I.1,4,8,9,12,13,14,21,28,100,54,33,44
J.1,4,8,9,12,13,14,21,28,33,100,54,44
K.1,4,8,9,12,13,14,21,28,33,44,100,54
L.1,4,8,9,12,13,14,21,28,33,44,54,100
M.1,4,8,9,12,13,14,21,28,33,44,54,100


  2.78,87,85,72,14,12,99,22,18
=============================
A.12,78,87,85,72,14,99,22,18
B.12,14,78,87,85,72,99,22,18
C.12,14,18,78,87,85,72,99,22
D.12,14,18,22,78,87,85,72,99
E.12,14,18,22,72,78,87,85,99
F.12,14,18,22,72,78,87,85,99
G.12,14,18,22,72,78,85,87,99
H.12,14,18,22,72,78,85,87,99
I.12,14,18,22,72,78,85,87,99


  SCELECTION SHORT
  1.100,1,4,8,9,12,14,13,54,33,44,21,28
=====================================
A.1,100,4,8,9,12,14,13,54,33,44,21,28
B.1,4,100,8,9,12,14,13,54,33,44,21,28
C.1,4,8,100,9,12,14,13,54,33,44,21,28
D.1,4,8,9,100,12,14,13,54,33,44,21,28
E.1,4,8,9,12,100,14,13,54,33,44,21,28
F.1,4,8,9,12,13,14,100,54,33,44,21,28
G.1,4,8,9,12,13,14,100,54,33,44,21,28
H.1,4,8,9,12,13,14,21,54,33,44,100,28
I.1,4,8,9,12,13,14,21,28,33,44,100,54
J.1,4,8,9,12,13,14,21,28,33,44,100,54
K.1,4,8,9,12,13,14,21,28,33,44,100,54
L.1,4,8,9,12,13,14,21,28,33,44,54,100
M.1,4,8,9,12,13,14,21,28,33,44,54,100


  2.78,87,85,72,14,12,99,22,18
=============================
A.12,87,85,72,14,78,99,22,18
B.12,14,85,72,87,78,99,22,18
C.12,14,18,72,87,78,99,22,85
D.12,14,18,22,87,78,99,72,85
E.12,14,18,22,72,78,99,87,85
F.12,14,18,22,72,78,99,87,85
G.12,14,18,22,72,78,85,87,99
H.12,14,18,22,72,78,85,87,99
I.12,14,18,22,72,78,85,87,99


  INSENTION SHORT
  1.100,1,4,8,9,12,14,13,54,33,44,21,28
=====================================
A.1,100,4,8,9,12,14,13,54,33,44,21,28
B.1,4,100,8,9,12,14,13,54,33,44,21,28
C.1,4,8,100,9,12,14,13,54,33,44,21,28
D.1,4,8,9,100,12,14,13,54,33,44,21,28
E.1,4,8,9,12,100,14,13,54,33,44,21,28
F.1,4,8,9,12,13,100,14,54,33,44,21,28
G.1,4,8,9,12,13,14,100,54,33,44,21,28
H.1,4,8,9,12,13,14,21,100,54,33,44,28
I.1,4,8,9,12,13,14,21,28,100,54,33,44
J.1,4,8,9,12,13,14,21,28,33,100,54,44
K.1,4,8,9,12,13,14,21,28,33,44,100,54
L.1,4,8,9,12,13,14,21,28,33,44,54,100
M.1,4,8,9,12,13,14,21,28,33,44,54,100


  2.78,87,85,72,14,12,99,22,18
=============================
A.12,78,87,85,72,14,99,22,18
B.12,14,78,87,85,72,99,22,18
C.12,14,18,78,87,85,72,99,22
D.12,14,18,22,78,87,85,72,99
E.12,14,18,22,72,78,87,85,99
F.12,14,18,22,72,78,87,85,99
G.12,14,18,22,72,78,85,87,99
H.12,14,18,22,72,78,85,87,99
I.12,14,18,22,72,78,85,87,99 


  MARAGE SHORT
  1.100,1,4,8,9,12,14,13,54,33,44,21,28
=====================================
A.<100,1>,<4,8>,<9,12>,<14,13>,<54,33>,<44,21,28>
B.<1,100>,<4,8>,<9,12>,<13,14>,<33,54>,<21,28,44>
C.<1,4,8,100>,<9,12,13,14>,<21,28,33,44,54>
D.1,4,8,9,12,13,14,100>,<21,28,33,44,54>
E.1,4,8,9,12,13,14,21,28,33,44,54,100
F.1,4,8,9,12,13,14,21,28,33,44,54,100
G.1,4,8,9,12,13,14,21,28,33,44,54,100
H.1,4,8,9,12,13,14,21,28,33,44,54,100
I.1,4,8,9,12,13,14,21,28,33,44,54,100
J.1,4,8,9,12,13,14,21,28,33,44,54,100
K.1,4,8,9,12,13,14,21,28,33,44,54,100
L.1,4,8,9,12,13,14,21,28,33,44,54,100
M.1,4,8,9,12,13,14,21,28,33,44,54,100 


  2.78,87,85,72,14,12,99,22,18
=============================
A.<78,87>,<85,72>,<14,12>,<99,22,18>
B.<78,87>,<72,85>,<12,14>,<18,22,99>
C.<72,78,85,87>,<12,14,18,22,99>
D.<12,14,18,22,72,78,85,87>,<99>
E.12,14,18,22,72,78,85,87,99
F.12,14,18,22,72,78,85,87,99
G.12,14,18,22,72,78,85,87,99
H.12,14,18,22,72,78,85,87,99
I.12,14,18,22,72,78,85,87,99


  QUICK SHORT
  1.100,1,4,8,9,12,14,13,54,33,44,21,28
=====================================
A.100,1,4,8,9,12,<14>,13,54,33,44,21,28 ==>Piv 14
B.1,4,<8>,9,12,13<14>,54,33,44,21,28,100 ==>piv8,21
C.1,<4>,<8>,9,<12>,13<14>,<21>,28,33,44,54,100 ==>Piv 4,12,44
D.1,<4>,<8>,9,<12>,13<14>,<21>,28,33,<44>,54,100
E.1,4,8,9,12,13,14,21,28,33,44,54,100
F.1,4,8,9,12,13,14,21,28,33,44,54,100
G.1,4,8,9,12,13,14,21,28,33,44,54,100
H.1,4,8,9,12,13,14,21,28,33,44,54,100
I.1,4,8,9,12,13,14,21,28,33,44,54,100
J.1,4,8,9,12,13,14,21,28,33,44,54,100
K.1,4,8,9,12,13,14,21,28,33,44,54,100
L.1,4,8,9,12,13,14,21,28,33,44,54,100
M.1,4,8,9,12,13,14,21,28,33,44,54,100


  2.78,87,85,72,14,12,99,22,18
=============================
A.78,87,85,72,<14>,12,99,22,18 ==>Piv14
B.12,<14>,78,87,85,72,99,22,18 ==>Piv72
C.12,14,18,22,<72>,78,85,87,99
D.12,14,18,22,72,78,85,87,99
E.12,14,18,22,72,78,85,87,99
F.12,14,18,22,72,78,85,87,99
G.12,14,18,22,72,78,85,87,99
H.12,14,18,22,72,78,85,87,99
I.12,14,18,22,72,78,85,87,99
Reply
#3
TUGAS LOGIKA DAN ALGORITMA

NAMA : ANIN AMALIA
KELAS : 12.1A.21
NIM    : 12170049


Attached Files
.pdf   Tugas Logika dan Algoritma tanggal 3 Desember 2017.pdf (Size: 416.58 KB / Downloads: 5)
Reply
#4
--TUGAS LOGIKA DAN ALGORITMA--



Nama : Anky Lovika Sepasthika
Kelas : 12.1A.21
Nim : 12174856
Jurusan : Manajemen Informatika

A.100,1,4,8,9,12,14,23,54,33,44,21,28
B.78,87,72,14,12,99,22,18

-SELESAIKAN DENGAN METODE :
1.METODE BUBLE SORT
2.METODE SELECTION SORT
3.METODE INSERTION
4.METODE MERGE SORT
5.METODE QUICK SORT

1.METODE BUBLE SORT
A.100,1,4,8,9,12,14,13,54,33,44,21,28
  1. 1,100,4,8,9,12,14,13,54,33,44,21,28
  2. 1,4,100,8,9,12,14,13,54,33,44,21,28
  3. 1,4,8,100,9,12,14,13,54,33,44,21,28
  4. 1,4,89,100,12,14,12,54,33,44,21,28
  5. 1,4,8,9,12,100,14,13,54,33,44,21,28
  6. 1,4,8,9,12,13,100,14,54,33,44,21,28
  7. 1,4,8,9,12,13,14,100,54,33,44,21,28
  8. 1,4,8,912,13,14,21,100,54,33,44,28
  9. 1,4,8,9,12,13,14,21,28,100,54,33,44
  10. 1,4,8,9,12,13,14,21,28,33,100,54,44
  11. 1,4,8,9,12,13,14,21,28,33,44,100,54
  12. 1,4,8,9,12,13,14,21,28,33,44,54,100
  13. 1,4,8,9,12,13,14,21,28,33,44,54,100
B.78,87,85,7,2,14,12,99,22,18
  1. 12,78,87,85,72,14,99,22,18
  2. 12,14,78,87,85,72,99,22,18
  3. 12,14,18,78,87,85,72,99,22
  4. 12,14,18,22,78,87,85,72,99
  5. 12,14,18,22,72,78,87,85,99
  6. 12,14,18,22,72,78,87,85,99
  7. 12,14,18,22,72,78,85,87,99
  8. 12,14,18,22,72,78,85,87,99
  9. 12,14,18,22,72,78,85,87,99

2. METODE SELECTION SORT

A.100,1,4,8,9,12,14,13,54,33,44,21,28
  1. 1,100,4,8,9,12,14,13,54,33,44,21,28
  2. 1,4,100,8,9,12,14,13,54,33,44,21,28
  3. 1,4,8,100,9,12,14,13,54,33,44,21,28
  4. 1,4,8,9,100,12,14,13,54,33,44,21,28
  5. 1,4,8,9,12,100,14,13,54,33,44,21,28
  6. 1,4,8,9,12,13,14,100,54,33,44,21,28
  7. 1,4,8,9,12,13,14,21,54,33,44,100,28
  8. 1,4,8,9,12,13,14,21,28,33,44,54,100
  9. 1,4,8,9,12,13,14,21,28,33,44,54,100
  10. 1,4,8,9,12,13,14,21,28,33,44,54,100
  11. 1,4,8,9,12,13,14,21,28,33,44,54,100
  12. 1,4,8,9,12,13,14,21,28,33,44,54,100
  13. 1,4,8,9,12,13,14,21,28,33,44,54,100
B.78,87,85,72,14,12,99,22,18
  1. 12,87,85,72,14,78,99,22,18
  2. 12,14,85,72,87,87,99,22,18
  3. 12,14,18,72,87,78,99,22,18
  4. 12,14,18,22,87,78,99,22,18
  5. 12,14,18,22,72,78,99,87,85
  6. 12,14,18,22,72,78,85,87,99
  7. 12,14,18,22,72,78,85,87,99
  8. 12,14,18,22,72,78,85,87,99

3. METODE INSERTION

A. 100,1,4,8,9,12,14,13,54,33,44,21,28
  1. 1,100,4,8,9,12,14,13,54,33,44,21,28
  2. 1,4,100,8,9,12,14,13,54,33,44,21,28
  3. 1,4,8,100,9,12,14,13,54,33,44,21,28
  4. 1,4,8,9,100,12,14,13,54,33,44,21,28
  6. 1,4,8,9,12,14,100,13,54,33,44,21,28
  7. 1,4,8,9,12,13,14,100,54,33,44,21,28
  8. 1,4,8,9,12,13,14,54,100,33,44,21,28
  9. 1,4,8,9,12,13,14,33,54,100,44,21,28
  10. 1,4,8,9,12,13,14,33,44,54,100,21,28
  11. 1,4,8,9,12,13,14,21,33,44,54,100,28
  12. 1,4,8,9,12,13,14,21,28,33,44,54,100
  13. 1,4,8,9,12,13,14,21,28,33,44,54,100
B. 78,87,85.72,14,12,99,22,18
  1. 78,87,85,72,14,12,99,22,18
  2. 78,85,87,72,14,12,99,22,18
  3. 72,78,85,87,14,12,99,22,18
  4. 14,72,78,85,87,12,99,22,18
  5. 12,14,72,78,85,87,99,22,18
  6. 12,14,22,72,78,85,87,99,18
  7. 12,14,22,72,78,85,87,99,18
  8. 12,14,18,22,72,78,85,87,99
  9. 12,14,18,22,72,78,85,87,99

4. METODE MERGE SORT

A. 100,1,4,8,9,12,14,13,54,33,44,21,28
  1. [100,1] [4,8] [9,12] [14,13] [33 54 21 44] [44,21] [28]
  2. [1,100,4,8] [9,12,13,14] [33,54,21,44] [28,]
  3. [1,4,8,100,9,12,13,14] [21,33,44,54,28]
  4. [1,4,8,9,12,13,14,100,21,28,33,44,54]
  5. 1,4,8,9,12,13,14,21,28,33,44,54,100
  6. 1,4,8,9,12,13,14,21,28,33,44,54,100
  7. 1,4,8,9,12,13,14,21,28,33,44,54,100
  8. 1,4,8,9,12,13,14,21,28,33,44,54,100
  9. 1,4,8,9,12,13,14,21,28,33,44,54,100
  10. 1,4,8,9,12,13,14,21,28,33,44,54,100
  11. 1,4,8,9,12,13,14,21,28,33,44,54,100
  12. 1,4,8,9,12,13,14,21,28,33,44,54,100
  13. 1,4,8,9,12,13,14,21,28,33,44,54,100
B. 78,87,85,14,12,99,22,18
  1. [722,87] [85,72] [14,12] [99,22] [18]
  2. [78,87,72,85] [12,14,22,99] [18]
  3. [12,14,22,72,78,85,87,99] [18]
  4. 12,14,18,22,72,78,85,87,99
  5. 12,14,18,22,72,78,85,87,99
  6. 12,14,18,22,72,78,85,87,99
  7. 12,14,18,22,72,78,85,87,99
  8. 12,14,18,22,72,78,85,87,99
  9. 12,14,18,22,72,78,85,87,99

5.METODE QUICK SORT

A. 100,1,4,8,9,12,14,13,54,33,44,21,28
  1. 100,1,4,8,9,12(14),13,54,33,44,21,28  Pivot 14
  2. 1,4,(8),9,12,13,(14),54,33,44,(21),28,100  Pivot 8,21
  3. 1,(4),(8),9,(12),13,(14),(21),28,33,44,28,100  Pivot 4,12,44
  4. 1,(4),(8),9,(12),13,(14),(21),28,33,(44),54,100
  5. 1,4,8,9,12,13,14,21,28,33,44,54,100
  6. 1,4,8,9,12,13,14,21,28,33,44,54,100
  7. 1,4,8,9,12,13,14,21,28,33,44,54,100
  8. 1,4,8,9,12,13,14,21,28,33,44,54,100
  9. 1,4,8,9,12,13,14,21,28,33,44,54,100
  10. 1,4,8,9,12,14,21,28,33,44,54,100
  11. 1,4,8,9,12,14,21,28,33,44,54,100
  12. 1,4,8,9,12,14,21,28,33,44,54,100
  13. 1,4,8,9,12,14,21,28,33,44,54,100
B. 78,87,85,72,14,12,99,18
  1. 78,87,85,72,(14),12,99,18  Pivot 14
  2. 12,(14),78,87,85,72,99,22,18 Pivot 72
  3. 12,14,18,22,(72),78,85,87,99
  4. 12,14,18,22,72,78,85,87,99
  5. 12,14,18,22,72,78,85,87,99
  6. 12,14,18,22,72,78,85,87,99
  7. 12,14,18,22,72,78,85,87,99
  8. 12,14,18,22,72,78,85,87,99
  9. 12,14,18,22,72,78,85,87,99
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)