{"id":156081,"date":"2022-06-03T13:43:28","date_gmt":"2022-06-03T13:43:28","guid":{"rendered":"\/knowledge\/forums\/topic\/algorithm-choice-generic-implementation-design-a-median-with-ansys-scade-part-3-of-6\/"},"modified":"2022-06-03T13:43:28","modified_gmt":"2022-06-03T13:43:28","slug":"algorithm-choice-generic-implementation-design-a-median-with-ansys-scade-part-3-of-6","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/algorithm-choice-generic-implementation-design-a-median-with-ansys-scade-part-3-of-6\/","title":{"rendered":"Algorithm Choice, Generic Implementation &#8211; Design a Median with ANSYS SCADE (Part 3 of 6)"},"content":{"rendered":"<p>In the previous two videos, we have defined a generic interface for the median operator. In this video, the third in a series of six, to provide a generic implementation, we first need to find a good algorithm.The properties to look at when implementing a safety critical algorithm usually are the low complexity and the Controlled Worst Case Execution Time (WCET) to ensure good performance of our ANSYS SCADE design. We try to reduce or avoid modifications of large structures. We will use the Torben&#8217;s algorithm to create our median algorithm. We will explain it and implement it in ANSYS SCADE. For that, we will use a fold iterator.<br \/>\n<iframe loading=\"lazy\" title=\"Algorithm Choice, Generic Implementation - Design a Median with ANSYS SCADE (Part 3 of 6)\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/RBwMIA5l3X8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"template":"","class_list":["post-156081","topic","type-topic","status-publish","hentry","topic-tag-ansys","topic-tag-control-systems","topic-tag-designing-embedded-systems","topic-tag-embedded-software","topic-tag-embedded-systems","topic-tag-embedded-systems-programming","topic-tag-esterel-technologies","topic-tag-how-to","topic-tag-model-based-systems-engineering","topic-tag-safety-critical-applications","topic-tag-safety-critical-software","topic-tag-scade","topic-tag-scade-project","topic-tag-scade-tutorial"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["06-03-2022 20:20"],"_bbp_forum_id":["27825"],"_btv_view_count":["525"],"_bbp_likes_count":["2"],"_oembed_e5f428c29becb0ac4abbfba9defd1990":["<iframe title=\"Algorithm Choice, Generic Implementation - Design a Median with ANSYS SCADE (Part 3 of 6)\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/RBwMIA5l3X8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_e5f428c29becb0ac4abbfba9defd1990":["1655461738"],"_oembed_344e7f1634575ff4639c654d8ab75d34":["<iframe title=\"Algorithm Choice, Generic Implementation - Design a Median with ANSYS SCADE (Part 3 of 6)\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/RBwMIA5l3X8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>"],"_oembed_time_344e7f1634575ff4639c654d8ab75d34":["1712373323"]},"test":"watchlearnansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/156081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/156081\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=156081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}