GENERATED TERMINAL CONNECTIVITY PROBLEM FOR MULTI-LAYER LAYOUT SCHEME