Before the Commissioner of Transportation approves the layout of any railroad or the taking of any real estate for the purposes of such road or any change or alteration of the same, he shall give reasonable notice to all persons having an interest in such real estate to attend and be heard; and the appraisers shall cause a like notice to be given to all persons interested in such real estate. If any such person resides out of this state, or is an infant or cestui que trust, or is non compos mentis, any judge of the Superior Court may prescribe the notice to be given to such person.