These are the files used to generate the data for the figures in
- Y. M. Chee, H. M. Kiah, and P. Purkayastha, "Rewritable Coset Coding for Flash Memories", IEEE International Symposium on Information Theory (ISIT) 2014, Honolulu, Hawaii, USA, pp. 2082 - 2086.
The file coset_coding.sage contains the implementation in
Sage.
Copyright (C) 2013. P. Purkayastha <ppurka _at_ gmail _dot_ com>,
H. M. Kiah <kiah0001 _at_ ntu _dot_ edu _dot_ sg>.
This program is released under GPL-3 or later. If the license is not mentioned in any version of the file, then the default version is GPL-3.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Copy the file coset_coding.sage somewhere. Then run the file using:
$ time sage coset_coding.sage | tee -i -a output.txt
You may modify the file to comment out certain portions depending on the specific codes you want to simulate.