classification of cost by function - Search