Here you can ask questions and find or give answers to organizational, academic and other questions about studying computer science.

1.1k questions

1.3k answers

1.7k comments

557 users

0 votes

Paper - 2021.08

Why is the condition ITE(α, 1, Ψ ) not preferred over D(X_α)=D(X_Ψ)>D(X_Φ)? Can we prefer one over the other? 

in * TF "Emb. Sys. and Rob." by (1k points)

1 Answer

+1 vote
 
Best answer
It does not matter, both should finally return the same result. But I agree with you that for performance reasons, one should first check whether some arguments are constants to go on with simpler cases. The example solution avoids the use of Apply, and just used ITE to the very end, which is also correct.
by (170k points)
selected by
Alright, Thank you very much for the detailed explanation.

Related questions

Imprint | Privacy Policy
...