This paper deals with the efficient on-line calculation of supervisory controls for discrete event systems (DES's) in the framework of limited lookahead control policies (or LLPs) that we introduced in previous papers. In the LLP scheme, the control action after a given trace of events has been executed is calculated on-line on the basis of an N-step ahead projection of the behavior of the DES. To compute these controls, one must calculate after the execution of each event the supremal controllable sublanguage of a finite language with respect to another finite larger language. In our previous work, we showed how the required supremal controllable sublanguage calculation can be performed by using a backward dynamic programming algorithm over the nodes of the tree representation of these two languages. In this paper, we pursue the same approach for the calculation of LLP controls, but instead we adopt a forward calculation procedure over the N-level tree of interest. This forward procedure improves upon previous work by avoiding the explicit consideration of all the nodes of the N-level tree, while still permitting tree-to-tree recursiveness as enabled events are executed by the system. The forward search ends whenever a control decision can be made unambiguously or whenever the boundary of the N-level tree is reached, whichever comes first. This motivates the name "Variable Lookahead Policy" (or VLP) for this implementation of the LLP supervisory control scheme. This paper presents a general VLP algorithm and studies the properties of several special cases of it. The paper also discusses the implementation of the VLP algorithms and presents computational results regarding the application of these algorithms to a "time-varying" DES. This paper deals with the efficient on-line calculation of supervisory controls for discrete event systems (DES's) in the framework of limited lookahead control policies that we introduced in Chung, Lafortune, and Lin (1992). It builds upon the results presented in Chung, Lin (1992, 1993a) concerning this framework.Consider a DES that is being controlled by dynamically disabling/enabling events after the execution of each event by the controlled system. In supervisory control with limited lookahead policies (or LLPs), the control action after a given trace of events has been executed is calculated on-line on the basis of an N-step ahead projection of the behavior of 238 CHUNG, LAFORTUNE, AND LIN the DES under consideration; this procedure is repeated after the system executes any one of the enabled events. This is in contrast with the "conventional" supervisory control paradigm (cf. Wonham 1988, Ramadge and where the complete control policy is calculated off-line using automaton models of the DES and of the legal behavior. As discussed in Chung, Lafortune, and Lin (1992), LLPs allow to control certain classes of "time-varying" DES's and they also provide a means for dealing with the computational complexity of supervisor synthesis for DES's with large state spaces.Chung, Lafortune, a...