[][src]Function rust_sike::strategy::compute_strategy

pub fn compute_strategy(
    n: usize,
    p: u64,
    q: u64
) -> Result<Vec<usize>, &'static str>

Computing optimised strategy (ref compute_strategy, Algorithm 46 p. 75).

  • Input: strategy size n, parameters p, q
  • Output: optimal strategy of size n

Examples

use rust_sike::compute_strategy;
let strat = compute_strategy(12, 13, 14);
println!("{:?}", strat);