Skip to content

Commit

Permalink
Adicionando Caminho Log
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBernini committed Mar 23, 2020
1 parent 2484d85 commit e8feeed
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 57 deletions.
Binary file modified Cats/__pycache__/Calcular.cpython-37.pyc
Binary file not shown.
Binary file modified Cats/__pycache__/Cat_BestFirst.cpython-37.pyc
Binary file not shown.
Binary file modified Cats/__pycache__/Cat_BreadthFirstSearch.cpython-37.pyc
Binary file not shown.
Binary file modified Cats/__pycache__/Cat_DepthFirst.cpython-37.pyc
Binary file not shown.
Binary file modified Cats/__pycache__/Cat_aStar.cpython-37.pyc
Binary file not shown.
Binary file modified Cats/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified GifMaker/__pycache__/GifMaker.cpython-37.pyc
Binary file not shown.
Binary file modified GifMaker/__pycache__/GifShow.cpython-37.pyc
Binary file not shown.
Binary file modified GifMaker/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified Gifs/Gif_aStar.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 34 additions & 57 deletions Logs/Log_aStar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@ Estado escolhido: (5, 5)

Nós expandidos:
Coordenada: (5, 6)
F = 5
F = 4
G = 1
H = 4
H = 3

Coordenada: (6, 6)
F = 6
F = 5
G = 1
H = 5
H = 4

Coordenada: (6, 5)
F = 7
F = 6
G = 1
H = 6
H = 5

Coordenada: (5, 4)
F = 7
F = 6
G = 1
H = 6
H = 5

Coordenada: (4, 5)
F = 7
F = 6
G = 1
H = 6
H = 5

Coordenada: (4, 6)
F = 6
F = 5
G = 1
H = 5
H = 4

Lista aberta: (5, 5) (5, 6) (6, 6) (6, 5) (5, 4) (4, 5) (4, 6)
Lista fechada:
Expand All @@ -42,19 +42,19 @@ Estado escolhido: (5, 6)

Nós expandidos:
Coordenada: (5, 7)
F = 5
F = 4
G = 2
H = 3
H = 2

Coordenada: (6, 7)
F = 6
F = 5
G = 2
H = 4
H = 3

Coordenada: (4, 7)
F = 6
F = 5
G = 2
H = 4
H = 3

Lista aberta: (5, 6) (6, 6) (4, 6) (6, 5) (5, 4) (4, 5) (5, 7) (6, 7) (4, 7)
Lista fechada: (5, 5)
Expand All @@ -65,19 +65,19 @@ Estado escolhido: (5, 7)

Nós expandidos:
Coordenada: (5, 8)
F = 4
F = 3
G = 2
H = 2
H = 1

Coordenada: (6, 8)
F = 5
F = 4
G = 2
H = 3
H = 2

Coordenada: (4, 8)
F = 5
F = 4
G = 2
H = 3
H = 2

Lista aberta: (5, 7) (6, 6) (4, 6) (6, 7) (4, 7) (6, 5) (5, 4) (4, 5) (5, 8) (6, 8) (4, 8)
Lista fechada: (5, 5) (5, 6)
Expand All @@ -88,50 +88,27 @@ Estado escolhido: (5, 8)

Nós expandidos:
Coordenada: (5, 9)
F = 4
F = 3
G = 3
H = 1
H = 0

Coordenada: (6, 9)
F = 5
F = 4
G = 3
H = 2
H = 1

Coordenada: (4, 9)
F = 5
F = 4
G = 3
H = 2
H = 1

Lista aberta: (5, 8) (6, 8) (4, 8) (6, 6) (4, 6) (6, 7) (4, 7) (6, 5) (5, 4) (4, 5) (5, 9) (6, 9) (4, 9)
Lista fechada: (5, 5) (5, 6) (5, 7)

----------------------

Estado escolhido: (5, 9)

Nós expandidos:
Coordenada: (5, 10)
F = 4
G = 4
H = 0

Coordenada: (6, 10)
F = 5
G = 4
H = 1

Coordenada: (4, 10)
F = 5
G = 4
H = 1

Lista aberta: (5, 9) (6, 8) (4, 8) (6, 9) (4, 9) (6, 6) (4, 6) (6, 7) (4, 7) (6, 5) (5, 4) (4, 5) (5, 10) (6, 10) (4, 10)
Lista fechada: (5, 5) (5, 6) (5, 7) (5, 8)

----------------------

Inicio: (5, 5)
Fim: (5, 10)
Bloqueios: []
Quantidade de nós visitados: 5
Caminho encontrado: [(5, 5), (5, 6), (5, 7), (5, 8), (5, 9), (5, 10)]
Fim: (5, 9)
Bloqueios: [(4, 10), (5, 10), (6, 10)]
Quantidade de nós visitados: 4
Caminho encontrado: [(5, 5), (5, 6), (5, 7), (5, 8), (5, 9)]
5 changes: 5 additions & 0 deletions buscas.py
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,11 @@ def btnMtRapido_Click():
tk.Label(frameDesenvolvedores, foreground="orange", font=("Helvetica", 14), bg=backgroundColor, text="Alfredo Albélis Batista Filho").place(x=0, y=0)
tk.Label(frameDesenvolvedores, foreground="orange", font=("Helvetica", 14), bg=backgroundColor, text="Pedro Henrique Bernini Silva").place(x=0, y=30)

# FRAME DE LOGS
frameLog = tk.LabelFrame(root, font=("Helvetica", 10), text="Log dos algoritmos", borderwidth=2, foreground='white', relief=tk.SUNKEN, bg=backgroundColor, width=270, height=60, padx=10, pady=5)
frameLog.place(x=1000, y=230)
tk.Label(frameLog, foreground="white", font=("Helvetica", 10), bg=backgroundColor, text='Caminho: "/Logs/Log_<Algoritmo>.txt"').place(x=0, y=0)

root.mainloop()


Expand Down

0 comments on commit e8feeed

Please sign in to comment.