Sentence:  an unnecessarily <WSD>expensive</WSD> choice of algorithm 
Meaning of the word marked with <WSD> tags:  Taking a lot of system time or resources.