Skip to main content
. 2021 Dec 17;9:795007. doi: 10.3389/fpubh.2021.795007

Algorithm 1:

Pseudocode for Q-prioritization phase.

Input: Ws
Output: Relevant prioritized queries.
1 Scan all labeled Ws determined in “Segregate-weight score phase” ;
2 Compute relevant threshold Rth for each PD subset:
Rth=Normalmax(PD)Countcol×Ratemax ;
3 foreach disorder set D do Add all rate points Ri grouped by column. ;
4 Find mean μi for each column. ;
5 Designate μi as Prel ;
6 Rank all Prel in ascending order priority: Prel=i=1SRiS ;
7 if PrelRth then
8 | corresponding attribute column is irrelevant. ;
9 end
10 if PrelRth then
11 | corresponding column is relevant. ;
12 end
13 Relevant prioritized queries are retained. ;