View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
greedy algorithm in OFDM resource allocation (single user)

4.7 | 3 ratings Rate this file 25 Downloads (last 30 days) File Size: 3.82 KB File ID: #19303 Version: 1.0
image thumbnail

greedy algorithm in OFDM resource allocation (single user)


Hamid Ramezani (view profile)


23 Mar 2008 (Updated )

the implemention of greedy algorithm in mex file

| Watch this File

File Information

As the power needed to transmit a certain number of bits in
a subcarrier is independent of the numbers of bits allocated to
other subcarriers, it turns out that a greedy approach is optimal.
A greedy algorithm assigns bits to the subcarriers one bit at a
time, and in each assignment, the subcarrier that requires the
least additional power is selected. The bit allocation process
will be completed when all required data rate is satisfied.

Required Products Aerospace Blockset
MATLAB release MATLAB 7.4 (R2007a)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
07 Sep 2016 Fowsiya Begum


Comment only
06 Jun 2016 azrinawati samaon

Sir can you give me code multiuser greedy algorithm. I already used you code singleuser but I want modified to multiuser greedy algorithm. I need help from you.

Comment only
08 Dec 2015 gillian leong

06 Nov 2015 Nur Indah


16 Dec 2014 asma b

asma b (view profile)

sir can you give me code for subcarrier allocation

Comment only
18 Mar 2013 Hamid Ramezani

Hamid Ramezani (view profile)

For those who are working with MATLAB on a 64 bit operating system, please build a 64 mex function for the c code inside the zip folder.

The instruction is as follow:

1. mex -setup (choose the appropriate compiler)
2. mex greedyAlgSingleUser.c (building mex function)

Hamid Ramezani.

Comment only
13 Jun 2012 Varuna De Silva

Thanks Hamid, this code is very helpful as a starting point.

However, I have a doubt in your calculation of individual channel SNR's after SC allocation.

In the program channel SNR = Pt / CSI^2, for fourth image.

however, shouldn't it be SNR = Pt*CSI^2/ variance of AWGN ?

19 Dec 2009 zhongxiong duan

Thank you .The result is good.

Comment only
07 Nov 2009 subbu ks

how to run thus file.showing error in greedyAlgSingleUser...can u please suggest me at earliest

Comment only
08 Apr 2009 yang lin

how to use it?

Comment only
01 Apr 2016 1.0

license will be added

07 Apr 2016 1.0

remove mex file

Contact us