On the Budgeted Max-cut Problem and Its Application to the Capacitated Two-parallel Machine Scheduling