Research Article

Hierarchical Matching of Traffic Information Services Using Semantic Similarity

Algorithm 2

Functional matching.
Input:
RInput = rinput1, rinput2, …: input function sets requested
Input == input1, input2, …: input function set of a service provided.
Routput= routput1, routput2, …: output function sets requested
Output = output1, output2, …: output function set of a service
: similarity threshold
weights of input and output functions
Output:
Simfunc: similarity of function sets from travelers and providers
Begin
  
sim(,)//function
for  i ← 1 to m  do
for  j ← 1 to n  do
if >
service_set←service_set∪eij
end if
end for
end for
return service_set
End