Patent ID: 8615264

Claim:
A method for allocating a cognitive radio network spectrum based on aggregation, comprising: obtaining information about unoccupied spectrum fragments and capacity information, including required capacity, of an unauthorized user on different spectrum fragments, and constructing a solution matrix including the required capacity of the unauthorized user; calculating a reference index corresponding to the solution matrix, and determining a resource allocation vector according to the reference index and a capacity requirement of an unauthorized user; and allocating resources after selecting a resource allocation element from the resource allocation vector, the calculating of the reference index corresponding to the solution matrix is according to: calculating a first difference between two largest values of capacities that each unauthorized user is able to obtain on the unoccupied spectrum fragments in the solution matrix, calculating a second difference between two largest values of capacities that each unoccupied spectrum fragment is able to provide to the unauthorized users waiting for resource allocation in the solution matrix, and using the first difference and the second difference as the reference index corresponding to the solution matrix; the allocating of resources is according to: when a difference between a maximum number of spectrum fragments that a current unauthorized user is allowed to use and number of spectrum fragments that are already allocated as capacity is 1, detecting other spectrum resources that can be used by the unauthorized user, and if resources satisfying requirements of the unauthorized user exist, selecting and allocating the resources, if resources satisfying remaining requirements of the unauthorized user do not exist, releasing resources that are already allocated to the unauthorized user; and if there is a remaining resource allocation element waiting for resource allocation after the resource allocation, removing a resource allocation element that is used in the resource allocation from the solution matrix, and then constructing a new solution matrix to continue allocating resources until unoccupied spectrum resources corresponding to the information about unoccupied spectrum fragments are allocated or unauthorized users waiting for resource allocation obtain required spectrum resources.