-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
88 lines (77 loc) · 1.56 KB
/
main.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
import csv
import avl
import linkedlist
import ARRAY
f1=open(r"first20.txt","r")
f2=open(r"second20.txt","r")
f3=open(r"third20.txt","r")
r1=csv.reader(f1)
no=next(csv.reader(f1))
l1=[]
for i in csv.reader(f1):
l1.append(i)
f1.close()
r2=csv.reader(f2)
no=next(csv.reader(f2))
l2=[]
for i in csv.reader(f2):
l2.append(i)
f2.close()
r3=csv.reader(f3)
no=next(csv.reader(f3))
l3=[]
for i in csv.reader(f3):
l3.append(i)
f3.close()
T1=avl.AVL1()
T2=avl.AVL1()
T3=avl.AVL1()
root=None
for i in l1:
root=T1.insert(root,int(i[0]),i)
root1=root
root=None
for i in l2:
root=T2.insert(root,int(i[0]),i)
root2=root
root=None
for i in l3:
root=T3.insert(root,int(i[0]),i)
root3=root
menteementor=linkedlist.LinkedList()
a="chandrasekar@ssn.edu.in"
b="rajalakshmi@ssn.edu.in"
c="divyajohn@ssn.edu.in"
menteementor.append(a)
menteementor.append(T1)
menteementor.append(b)
menteementor.append(T2)
menteementor.append(c)
menteementor.append(T3)
f4=open(r'IT-A details.txt','r')
r4=csv.reader(f4)
no=next(csv.reader(f4))
l4=[]
for i in csv.reader(f4):
l4.append(i)
f4.close()
T4=avl.AVL1()
root=None
for i in l4:
root=T4.insert(root,int(i[0]),i)
root4=root
f5=open(r"CAT-1results.txt","r")
r5=csv.reader(f5)
#no=next(csv.reader(f5))
cat1=ARRAY.Arr()
for i in csv.reader(f5):
cat1.append(i)
f5.close()
#reading cat2.txt file. lines:77-83
f6=open(r"CAT-2 results.txt","r")
r6=csv.reader(f6)
no=next(csv.reader(f6))
cat2=ARRAY.Arr()
for i in csv.reader(f6):
cat2.append(i)
f6.close()