Abstract. Efficient and effective resource utilization is important in the bandwidth allocation of the communication network, especially when the resources are scarce such as the radio channels in the wireless links. Channel assignment in Wideband CDMA transmission schemes, i.e., the bandwidth allocation in the 3G wireless links, can be transformed into the Orthogonal Variable Spreading Factor code assignment to the connection requests. The code assignment problem presents a typical on-line feature that the decision to accept/reject the request has to be made at the arrival time of the request without the knowledge of future requests. An algorithm for an on-line problem is considered competitive if its performance is within some constant fraction of the performance of any other algorithm for the same input sequences. The study in deriving a competitive algorithm is valuable as it guarantees a lower bound of the system performance in all circumstances. This paper presents an online competitive algorithm called Left Right Aggressive (LRA) for the OVSF code assignment problem in the wireless links regarding system throughput as the performance indicator. With preemption allowed, the proposed algorithm achieves the constant competitive ratio of 2/(1-2β), where β is the fraction of the maximum requested bandwidth to the system capacity. The simulation results demonstrate that it is promising to achieve better throughput performance and lower preemption ratio in request patterns of Poisson distribution.