0

How to implement combinations of permutation & combination in angular 2+.

Eg. we have 5 nodes. Say a,b,c,d,e. And all are arrays. So the combination goes like - 5C2 = (5)! / (2)!*(3)! = 10.

Now how to make the looping for -

a->b
a->c
a->d
a->e

b ->c
b->d
b->e

c->d
c->e

d->e

where -

a = [claimRequest, claimBody]
b = [ claimBody, eventType]
c= [ claimRequest ]
d= [ headerRequest, claimRequest]
e = [eventType]

Now my query is where i have to input the two combinations are in place of value1 and value2

 RETURN algo.similarity.jaccard(<value1 >, <value2>) AS similarity
Techdive
  • 741
  • 3
  • 10
  • 39

0 Answers0