This is for a university project. I'm writing in C++ but language is irrelevant to the question.
Some context: we are required design an application to perform the following steps:
reads in some data that represents use cases (in my case a simple text file);
Example of a use case in the .txt file:
user places order
applies a STRIDE matrix to that data to create misuse cases
- don't worry if you're not familiar with STRIDE matrices - its irrelevant to the question
outputs the list of created misuse cases (basically just replaced the actor and the verb);
Example of a generated misuse case:
misactor (internal) tampers order
applies some sort of list reduction algorithm to the list;
- this is the part where I'm stuck
outputs the reduced list.
So far, I have an array of pointers to UseCase objects containing strings for the entity (eg. user), the relationship/verb (eg. places) and the target (eg. order).
I've got up to the point where I have generated a list of MisUseCase objects, and I now need to apply some sort of reduction/pruning algorithm to this list. Except I have no idea where to even start.
What would be the best way to reduce a list like this to a smaller set of viable/relevant objects?
Thank you in advance.