vnh assignment function based on new algorithm