kbss-cvut / fta-fmea

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cutsets API should return ordered list

blcham opened this issue · comments

REST API should return an ordered list of cutsets, with the highest probability first.

This way:

  1. we do not need to sort in UI
  2. we can decide in the future to return only a limited number of cutsets

I can imagine only one situation when it is useful to have API without sorting. It would be the case when:

  • computation takes too long
  • the algorithm does not return cutsets in optimal order
  • we implement paging
  • we show in UI suboptimal (not minimal) cutsets first and refine it later

@kostobog this is not the case right?

We definitely do not want to persist ordering in the list since we have this information in the probability.

@kostobog please comment on how to implement it in case it makes sense.