from it and the other in the stance between two penty respect to the one of the staghti The Bosne ano to 7 94 star 112 wiite function minist which receives the file name as a parameter and it returns the sum of the ancestom every component to the closest gnd point in other words, for each component voice. Wat ground points de competes function must compute the distance to the closest ground point then, it must sum the minimum distance for all components return it In the previous case, the components have the following distance from the closest gred pov 35 (ressor)34(e), 16 (transistor) and 18 (inductor). The program must return the sum of these values The function prototype is the following lot miniDist (char "aria). Implement function minDist in C code such it runs in linear time with respect to the number of components and ground ons other words, the function minist must run in O(N) time, where N is the number of components plus tive umber of ground rounds (gd) Specity (in plain English language) which is the key idea adopted Solutions not respecting is complexity requiremen (eg. with quadratic costs) will be penalized from it and the other in the stance between two penty respect to the one of the staghti The Bosne ano to 7 94 star 112 wiite function minist which receives the file name as a parameter and it returns the sum of the ancestom every component to the closest gnd point in other words, for each component voice. Wat ground points de competes function must compute the distance to the closest ground point then, it must sum the minimum distance for all components return it In the previous case, the components have the following distance from the closest gred pov 35 (ressor)34(e), 16 (transistor) and 18 (inductor). The program must return the sum of these values The function prototype is the following lot miniDist (char "aria). Implement function minDist in C code such it runs in linear time with respect to the number of components and ground ons other words, the function minist must run in O(N) time, where N is the number of components plus tive umber of ground rounds (gd) Specity (in plain English language) which is the key idea adopted Solutions not respecting is complexity requiremen (eg. with quadratic costs) will be penalized