-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.py
98 lines (79 loc) · 2.22 KB
/
search.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import os
prg = "Programs"
files = os.listdir(prg)
for num, i in enumerate(files):
print(num + 1, i)
ch = int(input("enter the choice"))
if ch == 1:
with open("./Programs/BFS(breath).py", "r") as info:
con = info.read()
print(con)
with open("1.py", "w") as file:
file.write(con)
if ch == 2:
with open("./Programs/A_star.py", "r") as info:
con = info.read()
print(con)
with open("2.py", "w") as file:
file.write(con)
if ch == 3:
with open("./Programs/DFS(depth).py", "r") as info:
con = info.read()
print(con)
with open("3.py", "w") as file:
file.write(con)
if ch == 4:
with open("./Programs/alpha_beta_pruning.py", "r") as info:
con = info.read()
print(con)
with open("4.py", "w") as file:
file.write(con)
if ch == 5:
with open("./Programs/cryto_arthrmatic.py", "r") as info:
con = info.read()
print(con)
with open("5.py", "w") as file:
file.write(con)
if ch == 6:
with open("./Programs/expert_system.py", "r") as info:
con = info.read()
print(con)
with open("6.py", "w") as file:
file.write(con)
if ch == 7:
with open("./Programs/min_max.py", "r") as info:
con = info.read()
print(con)
with open("7.py", "w") as file:
file.write(con)
if ch == 8:
with open("./Programs/Naive_Bayes.py", "r") as info:
con = info.read()
print(con)
with open("8.py", "w") as file:
file.write(con)
if ch == 9:
with open("./Programs/NLP_token.py", "r") as info:
con = info.read()
print(con)
with open("9.py", "w") as file:
file.write(con)
if ch == 10:
with open("./Programs/predicate-logic.py", "r") as info:
con = info.read()
print(con)
with open("10.py", "w") as file:
file.write(con)
if ch == 11:
with open("./Programs/sematic_net.py", "r") as info:
con = info.read()
print(con)
with open("11.py", "w") as file:
file.write(con)
if ch == 12:
with open("./Programs/spell_check.py", "r") as info:
con = info.read()
print(con)
with open("12.py", "w") as file:
file.write(con)
# x = os.getcwd()