<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">cheb</journal-id><journal-title-group><journal-title xml:lang="ru">Чебышевский сборник</journal-title><trans-title-group xml:lang="en"><trans-title>Chebyshevskii Sbornik</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">2226-8383</issn><publisher><publisher-name>Tula State Lev Tolstoy  Pedagogical University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.22405/2226-8383-2015-16-3-460-478</article-id><article-id custom-type="elpub" pub-id-type="custom">cheb-224</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>Статьи</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>Article</subject></subj-group></article-categories><title-group><article-title>ПРОСТОЙ И ОБОБЩЕННЫЙ ПОИСК ЭЛЕМЕНТОВ В ГНЕЗДОВЫХ МАССИВАХ И ИХ ЗАМЕЩЕНИЕ</article-title><trans-title-group xml:lang="en"><trans-title>SIMPLE AND GENERALIZED ELEMENTS SEARCH IN NESTED ARRAYS AND THEIR REPLACEMENT</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Григорьев</surname><given-names>С. Г.</given-names></name><name name-style="western" xml:lang="en"><surname>Grigoryev</surname><given-names>S. G.</given-names></name></name-alternatives><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Есаян</surname><given-names>А. Р.</given-names></name><name name-style="western" xml:lang="en"><surname>Esayan</surname><given-names>A. R.</given-names></name></name-alternatives><xref ref-type="aff" rid="aff-2"/></contrib></contrib-group><aff xml:lang="ru" id="aff-1"><institution>Московский городской педагогический университет.</institution><country>Russian Federation</country></aff><aff xml:lang="ru" id="aff-2"><institution>Тульский государственный педагогический университет им. Л. Н. Толстого</institution><country>Russian Federation</country></aff><pub-date pub-type="collection"><year>2015</year></pub-date><pub-date pub-type="epub"><day>06</day><month>07</month><year>2016</year></pub-date><volume>16</volume><issue>3</issue><fpage>460</fpage><lpage>478</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Григорьев С.Г., Есаян А.Р., 2016</copyright-statement><copyright-year>2016</copyright-year><copyright-holder xml:lang="ru">Григорьев С.Г., Есаян А.Р.</copyright-holder><copyright-holder xml:lang="en">Grigoryev S.G., Esayan A.R.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.chebsbornik.ru/jour/article/view/224">https://www.chebsbornik.ru/jour/article/view/224</self-uri><abstract><p>В статье приводится серия пользовательских рекурсивных функций для разнообразных задач поиска и замены элементов в гнездовых массивах. Последние определяются рекурсивно так, как это сделано в системе инженерных и научных вычислений PTC Mathcad Prime, то есть в виде матриц, элементы которых могут быть скаляры, строки и снова гнездовые массивы. Некоторые задачи поиска рассмотрены в [1-4]. Нашей задачей являлось развитие имеющихся и создание новых средств, связанных как с обычным, так и с обобщенным поиском и замещением элементов в гнез- довых массивах. Пусть A — скаляр, строка или гнездовой массив, B — гнездовой массив. Задачи с обобщенными вхождениями A в B (обобщенным поиском A в B), и замещением таких вхождений возникают тогда, когда в A или в B могут присутствовать специальные элементы, отож- дествляемые с любым скаляром, строкой или гнездовым массивом. В статье сформулировано 10 задач. Для каждой из них предложено одно или более решений в виде функций на языке программирования PTC Mathcad Prime. Все созданные функции протестированы на большом количестве примеров, но тесты приведены не полностью.</p><p> </p></abstract><trans-abstract xml:lang="en"><p>The article provides a series of custom recursive functions for a variety of tasks of searching and replacing elements in nested arrays. The latter are defined recursively, as is done in the system of engineering and scientific calculations, PTC Mathcad Prime, then there are matrices whose elements can be scalars, strings, and again the nesting arrays. Some problems of the search are considered in [1-4]. Our goal was the development of existing and creation of new means associated with both simple and generalized searching and replacing elements in nested arrays. Let A be a scalar, a string, or a nested array, B — nested array. The problem with generalized occurrences of A in B (generalized searching A in B) and replaced of such occurrences arise when A or B to be included by special elements associated with any scalar, string or nested array. In the article are formulated 10 problems. For each suggested one or more solutions as functions in a programming language PTC Mathcad Prime. All the features are tested on a large number of examples, but the tests are not completely.</p><p> </p></trans-abstract><kwd-group xml:lang="ru"><kwd>гнездовой массив</kwd><kwd>матрица</kwd><kwd>дерево</kwd><kwd>рекурсия</kwd><kwd>рекурсивная функция</kwd><kwd>поиск и замещение</kwd><kwd>обобщенный поиск</kwd><kwd>PTC Mathcad</kwd></kwd-group><kwd-group xml:lang="en"><kwd>nested array</kwd><kwd>matrix</kwd><kwd>tree</kwd><kwd>recursion</kwd><kwd>recursive function</kwd><kwd>search and replace</kwd><kwd>generalized searching</kwd><kwd>PTC Mathcad</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Есаян А. Р. Гнездовые массивы и рекурсия / Н. М. Добровольский, A. Р. Есаян. Материалы XXIII межд. конф. “Алгебра, теория чисел и дискретная геометрия. Современные проблемы и приложения” Тула, 25-30 мая 2015, с. 319-321</mixed-citation><mixed-citation xml:lang="en">Esayan, A. R. &amp; Dobrovolsky, N. M. 2015, "Nested arrays and recursion" , Proc. XXIII Int. Conf. “Algebra, number theory and discrete geometry. Modern problems and applications” Tula, May 25–30 2015, pp. 319–321. (Russian)</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Есаян А. Р. Векторизация и гнездовые массивы / A. Р. Есаян, А. В. Яку- шин. Материалы XXIII межд. конф. “Алгебра, теория чисел и дискретная геометрия. Современные проблемы и приложения” Тула, 25-30 мая 2015, с. 328-330</mixed-citation><mixed-citation xml:lang="en">Esayan, A. R. &amp; Yakushin, A. V. 2015, "Vectorization and nested arrays" , Proc. XXIII Int. Conf. “Algebra, number theory and discrete geometry. Modern problems and applications” Tula, May 25–30 2015, pp. 328–330. (Russian)</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Есаян А. Р., Добровольский Н. М. Гнездовые массивы и рекурсия // Чебышевский сборник. 2015. Т. 16, вып. 3(55). С. 479–495.</mixed-citation><mixed-citation xml:lang="en">Esayan, A. R. &amp; Dobrovolsky, N. M. 2015, "Nested arrays and recursion" , Chebyshevskii Sb., vol. 16, no. 3(55), pp. 479–495.</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Есаян А. Р., Якушин А. В. Векторизация и гнездовые массивы // Чебышевский сборник. 2015. Т. 16, вып. 3(55). С. 496–509.</mixed-citation><mixed-citation xml:lang="en">Esayan, A. R. &amp; Yakushin, A. V. 2015,"Vectorization and nested arrays" , Chebyshevskii Sb., vol. 16, no. 3(55), pp. 496–509.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Есаян А. Р. Обучение алгоритмизации на основе рекурсии. Тула: Изд. ТГПУ, 2001, с. 215</mixed-citation><mixed-citation xml:lang="en">Esayan, A. R. 2001, "Obuchenie algoritmizacii na osnove rekursii.", [Teaching algorithmization based on recursion], TGPU, Tula, 215 pp. (Russian)</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Brent Maxfield, P. E. Essential PTC Mathcad Prime 3.0. A Guide for New and Current Users, New York, Academic Press is an imprint of Elsevier, Nov. 11, 2013, p. 563</mixed-citation><mixed-citation xml:lang="en">Brent Maxfield, P. E. 2013, Essential PTC Mathcad Prime 3.0. A Guide for New and Cur-rent Users, Academic Press, New York.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Нans Wessenlingh and Hans de Waard. Calculate &amp; Communicate with Mathcad Prime 3.0, Delft Academic Press, The Netherlands, First edition 2014</mixed-citation><mixed-citation xml:lang="en">Wessenlingh, Н. &amp; de Waard, H. 2014, Calculate &amp; Communicate with Mathcad Prime 3.0, Delft Academic Press, The Netherlands</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
