Package eas.math.fundamentalAlgorithms.graphBased.algorithms.pushDown

Examples of eas.math.fundamentalAlgorithms.graphBased.algorithms.pushDown.PDA.reset()


        return g;
    }
   
    public PDA generatePDA() {
        PDA pda = new PDA();
        pda.reset();
        pda.setInitialState(this.initialState);
        pda.setInput(this.getInputAlphabet().toString().replace("[", "").replace("]", "").replace(", ", "")
                + this.getInputAlphabet().toString().replace("[", "").replace("]", "").replace(", ", ""));
       
        this.finalStates.forEach(state -> pda.addFinalState(state));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.