<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@Classical_error_correction_codes_-_a_review" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">Classical error correction codes - a review</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3e">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3e" data-runtime-class="LmsRuntime" data-block-type="video" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Classical error correction codes - a review</h3>
<div
id="video_M1L3e"
class="video closed"
data-metadata='{"speed": null, "saveStateEnabled": false, "streams": "1.00:xNU3rnqoccE", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "generalSpeed": 1.0, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3e/handler/publish_completion", "completionEnabled": false, "autoplay": false, "completionPercentage": 0.95, "captionDataDir": null, "duration": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3e/handler/xmodule_handler/save_user_state", "ytApiUrl": "https://www.youtube.com/iframe_api", "start": 0.0, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "prioritizeHls": false, "autoAdvance": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3e/handler/transcript/translation/__lang__", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3e/handler/transcript/available_translations", "ytMetadataEndpoint": "", "recordedYoutubeIsAvailable": true, "sources": [], "showCaptions": "true", "end": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="M1L3e"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box5">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box5" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@Example_-_n-bit_repetition_code" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">Example - n-bit repetition code</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3f">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3f" data-runtime-class="LmsRuntime" data-block-type="video" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Example - n-bit repetition code</h3>
<div
id="video_M1L3f"
class="video closed"
data-metadata='{"speed": null, "saveStateEnabled": false, "streams": "1.00:2E_wA7y8Oao", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "generalSpeed": 1.0, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3f/handler/publish_completion", "completionEnabled": false, "autoplay": false, "completionPercentage": 0.95, "captionDataDir": null, "duration": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3f/handler/xmodule_handler/save_user_state", "ytApiUrl": "https://www.youtube.com/iframe_api", "start": 0.0, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "prioritizeHls": false, "autoAdvance": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3f/handler/transcript/translation/__lang__", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3f/handler/transcript/available_translations", "ytMetadataEndpoint": "", "recordedYoutubeIsAvailable": true, "sources": [], "showCaptions": "true", "end": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="M1L3f"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box6">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="False" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box6" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@CQ_Repetition_codes" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">CQ: Repetition codes</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-rep-code">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-init="XBlockToXModuleShim" data-has-score="True" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-rep-code" data-runtime-class="LmsRuntime" data-block-type="problem" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_M1L3-cq-rep-code" class="problems-wrapper" role="group"
aria-labelledby="M1L3-cq-rep-code-problem-title"
data-problem-id="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-rep-code" data-url="/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-rep-code/handler/xmodule_handler"
data-problem-score="0"
data-problem-total-possible="1"
data-attempts-used="0"
data-content="
<h3 class="hd hd-3 problem-header" id="M1L3-cq-rep-code-problem-title" aria-describedby="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-rep-code-problem-progress" tabindex="-1">
Repetition codes
</h3>
<div class="problem-progress" id="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-rep-code-problem-progress"></div>
<div class="problem">
<div>
<p>
This is a concept question, provided to check your understanding of the previous video clip. </p>
<p>
Check all the following which are true, regarding <a href="https://en.wikipedia.org/wiki/Repetition_code" target="_blank">classical repetition codes</a>: </p>
<p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div class="choicegroup capa_inputtype" id="inputtype_M1L3-cq-rep-code_2_1">
<fieldset aria-describedby="status_M1L3-cq-rep-code_2_1">
<div class="field">
<input type="checkbox" name="input_M1L3-cq-rep-code_2_1[]" id="input_M1L3-cq-rep-code_2_1_choice_0" class="field-input input-checkbox" value="choice_0"/><label id="M1L3-cq-rep-code_2_1-choice_0-label" for="input_M1L3-cq-rep-code_2_1_choice_0" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-rep-code_2_1">
<text>For an [mathjaxinline]n=3[/mathjaxinline] bit repetition code, up to two arbitrary bit flip errors can be corrected.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_M1L3-cq-rep-code_2_1[]" id="input_M1L3-cq-rep-code_2_1_choice_1" class="field-input input-checkbox" value="choice_1"/><label id="M1L3-cq-rep-code_2_1-choice_1-label" for="input_M1L3-cq-rep-code_2_1_choice_1" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-rep-code_2_1">
<text>For an [mathjaxinline]n=7[/mathjaxinline] bit repetition code, up to three arbitrary bit flip errors can be corrected.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_M1L3-cq-rep-code_2_1[]" id="input_M1L3-cq-rep-code_2_1_choice_2" class="field-input input-checkbox" value="choice_2"/><label id="M1L3-cq-rep-code_2_1-choice_2-label" for="input_M1L3-cq-rep-code_2_1_choice_2" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-rep-code_2_1">
<text>Suppose the error is such that either three bits flip, or no bits flip; then for [mathjaxinline]n=4[/mathjaxinline], three bit flips can be corrected.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_M1L3-cq-rep-code_2_1[]" id="input_M1L3-cq-rep-code_2_1_choice_3" class="field-input input-checkbox" value="choice_3"/><label id="M1L3-cq-rep-code_2_1-choice_3-label" for="input_M1L3-cq-rep-code_2_1_choice_3" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-rep-code_2_1">
<text>Decoding is accomplished by taking the majority function of the bits.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_M1L3-cq-rep-code_2_1[]" id="input_M1L3-cq-rep-code_2_1_choice_4" class="field-input input-checkbox" value="choice_4"/><label id="M1L3-cq-rep-code_2_1-choice_4-label" for="input_M1L3-cq-rep-code_2_1_choice_4" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-rep-code_2_1">
<text>Decoding is done by taking the AND of the bits.</text>
</label>
</div>
<span id="answer_M1L3-cq-rep-code_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_M1L3-cq-rep-code_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div></div>
</p>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="Repetition codes" />
<div class="submit-attempt-container">
<button type="button" class="submit btn-brand" data-submitting="Submitting" data-value="Submit" data-should-enable-submit-button="True" aria-describedby="submission_feedback_M1L3-cq-rep-code" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_M1L3-cq-rep-code">
<span class="sr">Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.</span>
</div>
</div>
<div class="problem-action-buttons-wrapper">
<span class="problem-action-button-wrapper">
<button type="button" class="save problem-action-btn btn-default btn-small" data-value="Save">
<span class="icon fa fa-floppy-o" aria-hidden="true"></span>
<span aria-hidden="true">Save</span>
<span class="sr">Save your answer</span>
</button>
</span>
</div>
</div>
<div class="notification warning notification-gentle-alert
is-hidden"
tabindex="-1">
<span class="icon fa fa-exclamation-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="M1L3-cq-rep-code-problem-title">
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification warning notification-save
is-hidden"
tabindex="-1">
<span class="icon fa fa-save" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="M1L3-cq-rep-code-problem-title">None
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification general notification-show-answer
is-hidden"
tabindex="-1">
<span class="icon fa fa-info-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="M1L3-cq-rep-code-problem-title">Answers are displayed within the problem
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
</div>
"
data-graded="True">
<p class="loading-spinner">
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr">Loading…</span>
</p>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box1">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box1" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@General_classical_error_correction_codes" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">General classical error correction codes</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3g">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3g" data-runtime-class="LmsRuntime" data-block-type="video" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">General classical error correction codes</h3>
<div
id="video_M1L3g"
class="video closed"
data-metadata='{"speed": null, "saveStateEnabled": false, "streams": "1.00:Y6Yhq0kS_iY", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "generalSpeed": 1.0, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3g/handler/publish_completion", "completionEnabled": false, "autoplay": false, "completionPercentage": 0.95, "captionDataDir": null, "duration": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3g/handler/xmodule_handler/save_user_state", "ytApiUrl": "https://www.youtube.com/iframe_api", "start": 0.0, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "prioritizeHls": false, "autoAdvance": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3g/handler/transcript/translation/__lang__", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3g/handler/transcript/available_translations", "ytMetadataEndpoint": "", "recordedYoutubeIsAvailable": true, "sources": [], "showCaptions": "true", "end": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="M1L3g"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box7">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box7" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@Error_correction_code_distances_and_error_detection" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">Error correction code distances and error detection</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3h">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3h" data-runtime-class="LmsRuntime" data-block-type="video" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Error correction code distances and error detection</h3>
<div
id="video_M1L3h"
class="video closed"
data-metadata='{"speed": null, "saveStateEnabled": false, "streams": "1.00:MoLkRHRCXko", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "generalSpeed": 1.0, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3h/handler/publish_completion", "completionEnabled": false, "autoplay": false, "completionPercentage": 0.95, "captionDataDir": null, "duration": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3h/handler/xmodule_handler/save_user_state", "ytApiUrl": "https://www.youtube.com/iframe_api", "start": 0.0, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "prioritizeHls": false, "autoAdvance": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3h/handler/transcript/translation/__lang__", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3h/handler/transcript/available_translations", "ytMetadataEndpoint": "", "recordedYoutubeIsAvailable": true, "sources": [], "showCaptions": "true", "end": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="M1L3h"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box8">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box8" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@Code_distances_and_error_correction" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">Code distances and error correction</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3j">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3j" data-runtime-class="LmsRuntime" data-block-type="video" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Code distances and error correction</h3>
<div
id="video_M1L3j"
class="video closed"
data-metadata='{"speed": null, "saveStateEnabled": false, "streams": "1.00:yOaKPmsopr8", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "generalSpeed": 1.0, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3j/handler/publish_completion", "completionEnabled": false, "autoplay": false, "completionPercentage": 0.95, "captionDataDir": null, "duration": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3j/handler/xmodule_handler/save_user_state", "ytApiUrl": "https://www.youtube.com/iframe_api", "start": 0.0, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "prioritizeHls": false, "autoAdvance": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3j/handler/transcript/translation/__lang__", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3j/handler/transcript/available_translations", "ytMetadataEndpoint": "", "recordedYoutubeIsAvailable": true, "sources": [], "showCaptions": "true", "end": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="M1L3j"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box9">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box9" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@Classical_linear_error_correction_codes_-_field_F2" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">Classical linear error correction codes - field F2</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3k">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3k" data-runtime-class="LmsRuntime" data-block-type="video" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Classical linear error correction codes - field F2</h3>
<div
id="video_M1L3k"
class="video closed"
data-metadata='{"speed": null, "saveStateEnabled": false, "streams": "1.00:9PPYKnq2cEI", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "generalSpeed": 1.0, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3k/handler/publish_completion", "completionEnabled": false, "autoplay": false, "completionPercentage": 0.95, "captionDataDir": null, "duration": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3k/handler/xmodule_handler/save_user_state", "ytApiUrl": "https://www.youtube.com/iframe_api", "start": 0.0, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "prioritizeHls": false, "autoAdvance": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3k/handler/transcript/translation/__lang__", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3k/handler/transcript/available_translations", "ytMetadataEndpoint": "", "recordedYoutubeIsAvailable": true, "sources": [], "showCaptions": "true", "end": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="M1L3k"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box10">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="False" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box10" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@Classical_linear_error_correction_codes_-_definition" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">Classical linear error correction codes - definition</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3m">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3m" data-runtime-class="LmsRuntime" data-block-type="video" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Classical linear error correction codes - definition</h3>
<div
id="video_M1L3m"
class="video closed"
data-metadata='{"speed": null, "saveStateEnabled": false, "streams": "1.00:DOzlU1W1tY4", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "generalSpeed": 1.0, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3m/handler/publish_completion", "completionEnabled": false, "autoplay": false, "completionPercentage": 0.95, "captionDataDir": null, "duration": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3m/handler/xmodule_handler/save_user_state", "ytApiUrl": "https://www.youtube.com/iframe_api", "start": 0.0, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "prioritizeHls": false, "autoAdvance": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3m/handler/transcript/translation/__lang__", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3m/handler/transcript/available_translations", "ytMetadataEndpoint": "", "recordedYoutubeIsAvailable": true, "sources": [], "showCaptions": "true", "end": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="M1L3m"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box11">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box11" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@Linear_code_example_-_repetition_code" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">Linear code example - repetition code</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3n">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3n" data-runtime-class="LmsRuntime" data-block-type="video" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Linear code example - repetition code</h3>
<div
id="video_M1L3n"
class="video closed"
data-metadata='{"speed": null, "saveStateEnabled": false, "streams": "1.00:xORN4VA259A", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "generalSpeed": 1.0, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3n/handler/publish_completion", "completionEnabled": false, "autoplay": false, "completionPercentage": 0.95, "captionDataDir": null, "duration": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3n/handler/xmodule_handler/save_user_state", "ytApiUrl": "https://www.youtube.com/iframe_api", "start": 0.0, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "prioritizeHls": false, "autoAdvance": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3n/handler/transcript/translation/__lang__", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3n/handler/transcript/available_translations", "ytMetadataEndpoint": "", "recordedYoutubeIsAvailable": true, "sources": [], "showCaptions": "true", "end": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="M1L3n"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box12">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box12" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@Linear_codes_parity_check_matrices" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">Linear codes: parity check matrices</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3o">
<div class="xblock xblock-public_view xblock-public_view-video xmodule_display xmodule_VideoBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3o" data-runtime-class="LmsRuntime" data-block-type="video" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Video"}
</script>
<h3 class="hd hd-2">Linear codes: parity check matrices</h3>
<div
id="video_M1L3o"
class="video closed"
data-metadata='{"speed": null, "saveStateEnabled": false, "streams": "1.00:aVN9Z3vfzXk", "savedVideoPosition": 0.0, "ytTestTimeout": 1500, "generalSpeed": 1.0, "poster": null, "publishCompletionUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3o/handler/publish_completion", "completionEnabled": false, "autoplay": false, "completionPercentage": 0.95, "captionDataDir": null, "duration": 0.0, "saveStateUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3o/handler/xmodule_handler/save_user_state", "ytApiUrl": "https://www.youtube.com/iframe_api", "start": 0.0, "transcriptLanguage": "en", "lmsRootURL": "https://openlearninglibrary.mit.edu", "prioritizeHls": false, "autoAdvance": false, "transcriptLanguages": {"en": "English"}, "autohideHtml5": false, "transcriptTranslationUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3o/handler/transcript/translation/__lang__", "transcriptAvailableTranslationsUrl": "/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@video+block@M1L3o/handler/transcript/available_translations", "ytMetadataEndpoint": "", "recordedYoutubeIsAvailable": true, "sources": [], "showCaptions": "true", "end": 0.0}'
data-bumper-metadata='null'
data-autoadvance-enabled="False"
data-poster='null'
tabindex="-1"
>
<div class="focus_grabber first"></div>
<div class="tc-wrapper">
<div class="video-wrapper">
<span tabindex="0" class="spinner" aria-hidden="false" aria-label="Loading video player"></span>
<span tabindex="-1" class="btn-play fa fa-youtube-play fa-2x is-hidden" aria-hidden="true" aria-label="Play video"></span>
<div class="video-player-pre"></div>
<div class="video-player">
<div id="M1L3o"></div>
<h4 class="hd hd-4 video-error is-hidden">No playable video sources found.</h4>
<h4 class="hd hd-4 video-hls-error is-hidden">
Your browser does not support this video format. Try using a different browser.
</h4>
</div>
<div class="video-player-post"></div>
<div class="closed-captions"></div>
<div class="video-controls is-hidden">
<div>
<div class="vcr"><div class="vidtime">0:00 / 0:00</div></div>
<div class="secondary-controls"></div>
</div>
</div>
</div>
</div>
<div class="focus_grabber last"></div>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box13">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box13" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
<div class="xblock xblock-public_view xblock-public_view-vertical" data-init="VerticalStudentView" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@vertical+block@CQ_Linear_codes" data-runtime-class="LmsRuntime" data-block-type="vertical" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<h2 class="hd hd-2 unit-title">CQ: Linear codes</h2>
<div class="vert-mod">
<div class="vert vert-0" data-id="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-lincode">
<div class="xblock xblock-public_view xblock-public_view-problem xmodule_display xmodule_ProblemBlock" data-init="XBlockToXModuleShim" data-has-score="True" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-lincode" data-runtime-class="LmsRuntime" data-block-type="problem" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_M1L3-cq-lincode" class="problems-wrapper" role="group"
aria-labelledby="M1L3-cq-lincode-problem-title"
data-problem-id="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-lincode" data-url="/courses/course-v1:MITx+8.371.1x+2T2018/xblock/block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-lincode/handler/xmodule_handler"
data-problem-score="0"
data-problem-total-possible="1"
data-attempts-used="0"
data-content="
<h3 class="hd hd-3 problem-header" id="M1L3-cq-lincode-problem-title" aria-describedby="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-lincode-problem-progress" tabindex="-1">
Linear codes
</h3>
<div class="problem-progress" id="block-v1:MITx+8.371.1x+2T2018+type@problem+block@M1L3-cq-lincode-problem-progress"></div>
<div class="problem">
<div>
<p>
This is a concept question, provided to check your understanding of the previous video clip. </p>
<p>
Check all the following which are true about [mathjaxinline][n, k, d][/mathjaxinline] <a href="https://en.wikipedia.org/wiki/Linear_code" target="_blank">classical linear codes</a>: </p>
<p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div class="choicegroup capa_inputtype" id="inputtype_M1L3-cq-lincode_2_1">
<fieldset aria-describedby="status_M1L3-cq-lincode_2_1">
<div class="field">
<input type="checkbox" name="input_M1L3-cq-lincode_2_1[]" id="input_M1L3-cq-lincode_2_1_choice_0" class="field-input input-checkbox" value="choice_0"/><label id="M1L3-cq-lincode_2_1-choice_0-label" for="input_M1L3-cq-lincode_2_1_choice_0" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-lincode_2_1">
<text>[mathjaxinline]k[/mathjaxinline] is the number of bits used to encode the [mathjaxinline]n[/mathjaxinline] bits of information.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_M1L3-cq-lincode_2_1[]" id="input_M1L3-cq-lincode_2_1_choice_1" class="field-input input-checkbox" value="choice_1"/><label id="M1L3-cq-lincode_2_1-choice_1-label" for="input_M1L3-cq-lincode_2_1_choice_1" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-lincode_2_1">
<text>[mathjaxinline]n[/mathjaxinline] is the number of bits used to encode [mathjaxinline]k[/mathjaxinline] bits of information.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_M1L3-cq-lincode_2_1[]" id="input_M1L3-cq-lincode_2_1_choice_2" class="field-input input-checkbox" value="choice_2"/><label id="M1L3-cq-lincode_2_1-choice_2-label" for="input_M1L3-cq-lincode_2_1_choice_2" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-lincode_2_1">
<text>[mathjaxinline]d[/mathjaxinline] is the number of errors which the code can correct.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_M1L3-cq-lincode_2_1[]" id="input_M1L3-cq-lincode_2_1_choice_3" class="field-input input-checkbox" value="choice_3"/><label id="M1L3-cq-lincode_2_1-choice_3-label" for="input_M1L3-cq-lincode_2_1_choice_3" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-lincode_2_1">
<text>[mathjaxinline]t=\lfloor (d-1)/2 \rfloor[/mathjaxinline] is the number of errors which the code can correct.</text>
</label>
</div>
<div class="field">
<input type="checkbox" name="input_M1L3-cq-lincode_2_1[]" id="input_M1L3-cq-lincode_2_1_choice_4" class="field-input input-checkbox" value="choice_4"/><label id="M1L3-cq-lincode_2_1-choice_4-label" for="input_M1L3-cq-lincode_2_1_choice_4" class="response-label field-label label-inline" aria-describedby="status_M1L3-cq-lincode_2_1">
<text>When the generator matrix [mathjaxinline]G[/mathjaxinline] is expressed as an [mathjaxinline]n\times k[/mathjaxinline] matrix, each column is a codeword.</text>
</label>
</div>
<span id="answer_M1L3-cq-lincode_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_M1L3-cq-lincode_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div></div>
</p>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="Linear codes" />
<div class="submit-attempt-container">
<button type="button" class="submit btn-brand" data-submitting="Submitting" data-value="Submit" data-should-enable-submit-button="True" aria-describedby="submission_feedback_M1L3-cq-lincode" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_M1L3-cq-lincode">
<span class="sr">Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.</span>
</div>
</div>
<div class="problem-action-buttons-wrapper">
<span class="problem-action-button-wrapper">
<button type="button" class="save problem-action-btn btn-default btn-small" data-value="Save">
<span class="icon fa fa-floppy-o" aria-hidden="true"></span>
<span aria-hidden="true">Save</span>
<span class="sr">Save your answer</span>
</button>
</span>
</div>
</div>
<div class="notification warning notification-gentle-alert
is-hidden"
tabindex="-1">
<span class="icon fa fa-exclamation-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="M1L3-cq-lincode-problem-title">
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification warning notification-save
is-hidden"
tabindex="-1">
<span class="icon fa fa-save" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="M1L3-cq-lincode-problem-title">None
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification general notification-show-answer
is-hidden"
tabindex="-1">
<span class="icon fa fa-info-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="M1L3-cq-lincode-problem-title">Answers are displayed within the problem
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
</div>
"
data-graded="True">
<p class="loading-spinner">
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr">Loading…</span>
</p>
</div>
</div>
</div>
<div class="vert vert-1" data-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box2">
<div class="xblock xblock-public_view xblock-public_view-html xmodule_display xmodule_HtmlBlock" data-init="XBlockToXModuleShim" data-has-score="False" data-runtime-version="1" data-graded="True" data-usage-id="block-v1:MITx+8.371.1x+2T2018+type@html+block@site_search_box2" data-runtime-class="LmsRuntime" data-block-type="html" data-request-token="3ae88de402a911efb5f302329aca76dd" data-course-id="course-v1:MITx+8.371.1x+2T2018">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<span><a href="/asset-v1:MITx+8.371.1x+2T2018+type@asset+block/NONE" id="dummy_course_static_link" style="display:none"/><a href="/courses/course-v1:MITx+8.371.1x+2T2018/jump_to_id/NONE" id="dummy_jump_link" style="display:none"/><script type="text/javascript">
var add_site_search = function(){
course_static_url = $('#dummy_course_static_link').attr('href').replace('/NONE', '');
jump_to_url = $('#dummy_jump_link').attr('href').replace('/NONE', '');
if (typeof String.prototype.startsWith != 'function') {
// see below for better implementation!
String.prototype.startsWith = function (str){
return this.indexOf(str) === 0;
};
}
if(typeof(String.prototype.trim) === "undefined")
{
String.prototype.trim = function()
{
return String(this).replace(/^\s+|\s+$/g, '');
};
}
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var amp = String.fromCharCode(38);
var rlb = rb + lb;
var mke = function(x){ return lb + x + rb; }
var search_module_url = "";
var get_search_module_ficus = function(){
var cid = $('div.xblock').data('course-id');
if (cid){
console.log("cid = ", cid);
// search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/" + cid + "/courseware/welcome/Search_this_course/";
search_module_url = "/courses/course-v1:MITx+8.371.1x+2T2018/courseware/welcome/Search_this_course/"; // automatically rewritten
console.log("3. search_module_url = ", search_module_url);
return;
}
var course_root_link = $('span.nav-item-course').find('a').attr('href');
if (course_root_link){
console.log("course_root_link = ", course_root_link);
search_module_url = course_root_link.replace("course/", "courseware/welcome/Search_this_course/");
console.log("2. search_module_url = ", search_module_url);
return
}
console.log("cannot determine search module url");
}
var get_search_module = function(){
// find search this module link
if (!($('div.course-index').length)){
return get_search_module_ficus();
}
$('div.course-index').find('nav').find('a').each(function(){
if ($(this).text().trim().startsWith("Search this course")){
search_module_url = $(this).attr('href');
console.log("search_module_url = ", search_module_url);
}
});
}
var go_to_search = function(){
get_search_module();
var sterm = $('#site-search-box').val();
// new_url = jump_to_url + "/Search_this_module/?q=" + sterm;
new_url = search_module_url + "?q=" + sterm;
console.log("sterm = ", sterm, " ; going to ", new_url);
window.location.href = new_url;
}
if (!$('#site-search-box').length){
$("nav.courseware").find("ol").append(lb + "section style='float:right'" + rlb + "input size='20'"
+ " id='site-search-box'"
+ rlb + "img src='" + course_static_url
+ "/images_search_glass.png'/" + rlb + "/input" + rlb + "/section" + rb);
}
$("#site-search-box").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
go_to_search();
}
});
// $('#site-search-box').bind("enterKey", go_to_search);
var get = function(x){
return eval(x);
}
return {'course_static_url': course_static_url,
'jump_to_url': jump_to_url,
'go_to_search': go_to_search,
'get_search_module': get_search_module,
'get_search_module_ficus': get_search_module_ficus,
'get': get,
}
}
var the_site_search = add_site_search();
var add_fix_transcript = function(){
if ($('div.wrap-instructor-info').length==0){
return;
}
$('div.xblock-student_view-video').each(function(key, vblock_e){
var vblock = $(vblock_e);
var vuid = vblock.data('usage-id').split('@');
var vid;
if (vuid.length==1){
vuid = vblock.data('usage-id').split(';_')
vid = vuid[5];
}else{
vid = vuid[2];
}
var mfnpre = vid.split("_video",1)[0];
var mfnid = mfnpre; // no periods
mfnpre = mfnpre.replace('8_370', '8.370'); // periods in gh filename
var lb = String.fromCharCode(60);
var rb = String.fromCharCode(62);
var mke = function(x){ return lb + x + rb; }
var ftid = "fix_transcript_" + mfnid;
if (!$('#' + ftid).length){
var html = lb + "span id='" + ftid + "' style='float:right'" + rb + lb + "a href='#'" + rb;
html += "contribute transcript fix" + mke("/a") + mke("/span");
console.log("html = ", html);
vblock.after(html)
}
$('#' + ftid).click(function(){
var cst = $('ol.subtitles').find('li.current');
var cindex = Number(cst.data('index'));
var gurl;
if (mfnpre.endsWith('_cq_sol')){
gurl = "https://github.com/mitocw/content-mit-8370x-cq-sol-subtitles/blob/master/";
}else{
gurl = "https://github.com/mitocw/content-mit-8370x-subtitles/blob/master/";
}
gurl += mfnpre + ".txt#L" + String(cindex + 10 + 1);
console.log("going to ", gurl);
window.open(gurl, "MITx 8.370x subtitle source");
});
});
}
try{
add_fix_transcript();
}
catch(err){
console.log(err);
}
try{
var rb = String.fromCharCode(62);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 3000);
setTimeout(function(){ $('.math' + rb + 'span').css("border-left-color","transparent"); }, 8000);
}
catch(err){
console.log(err);
}
</script></span>
</div>
</div>
</div>
</div>
© All Rights Reserved