-
Notifications
You must be signed in to change notification settings - Fork 1
/
kb.pl
102 lines (85 loc) · 4 KB
/
kb.pl
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
99
100
101
102
field(business_information_system) :-
confirm_specific_interest(business, 3),
confirm_specific_interest(analyzing_data, 3). %Threshold for analyzing data must be >= 3 to advice BIS
field(software_engineering) :-
confirm_specific_interest(programming, 3), %Threshold for programming must be >= 3 to advice KE
confirm_specific_interest(ood, 3). %Threshold for ood must be >= 3 to advice KE
field(high_performance_computing) :-
confirm_specific_interest(linux_os, 3), %Threshold for business must be >= 3 to advice BIS
confirm_specific_interest(parallel_computing, 3).%Threshold for analyzing data must be >= 3 to advice BIS
field(knowledge_engineering) :-
confirm_specific_interest(expert_system, 3),
confirm_specific_interest(algorithms, 3). %input neural network
field(computer_networking) :-
confirm_specific_interest(telecom_network, 3),
confirm_specific_interest(server_management, 3),
confirm_specific_interest(developing_network_infrastructure, 2);
confirm_specific_interest(data_trans, 2).
field(embedded_systems) :-
confirm_specific_interest(sensors_electronics, 3),
confirm_specific_interest(circuit_design, 3),
confirm_specific_interest(microcontrollers, 2);
confirm_specific_interest(digital_signal, 2).
field_CT_T3() :-
confirm_same_interestLevel_CT(telecom_network,
data_trans,
sensors_electronics,
digital_signal,
server_management,
developing_network_infrastructure,
microcontrollers,
circuit_design,
3).
field_CT_T4() :-
confirm_same_interestLevel_CT(telecom_network,
data_trans,
sensors_electronics,
digital_signal,
server_management,
developing_network_infrastructure,
microcontrollers,
circuit_design,
4).
field_CS_T4() :-
confirm_same_interestLevel_CS(business,
analyzing_data,
programming,
ood,
linux_os,
parallel_computing,
expert_system,
algorithms,
4).
field_CS_T3() :-
confirm_same_interestLevel_CS(business,
analyzing_data,
programming,
ood,
linux_os,
parallel_computing,
expert_system,
algorithms,
3).
% Advices on courses one should take
should_take(X,Y,Z) :-
setof(X, can_take(X), Courses),
member(X, Courses),info(X,Y,Z).
% Define conditions necessary to take given majors
can_take(business_information_system) :-
bis_any_meets_threshold(b_fis, dbms, sre, 2.67), %max
field(business_information_system).
can_take(knowledge_engineering) :-
ke_any_meets_threshold(dsa, em, ai, 2.67), %max
field(knowledge_engineering).
can_take(software_engineering) :-
se_any_meets_threshold(b_fis, dsa, dbms, sre, 2.67), %max
field(software_engineering).
can_take(high_performance_computing) :-
hpc_any_meets_threshold(osf, dsa, la_ns, co, nd_e, 2.67), %max
field(high_performance_computing).
can_take(computer_networking) :-
cn_any_meets_threshold(osf, an, nd_e, la_ns, 2.67), %max
field(computer_networking).
can_take(embedded_systems) :-
es_any_meets_threshold(ai, em, ec_s, 2.67), %max
field(embedded_systems).