RUS  ENG
Full version
JOURNALS // Chebyshevskii Sbornik // Archive

Chebyshevskii Sb., 2015 Volume 16, Issue 3, Pages 460–478 (Mi cheb429)

COMPUTING & INFORMATION TECHNOLOGY IN MATHEMATICS

Simple and generalized elements search in nested arrays and their replacement

S. G. Grigoryeva, A. R. Esayanb

a Moscow City Pedagogical University
b Tula State Pedagogical University

Abstract: 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.
Bibliography: 7 titles.

Keywords: nested array, matrix, tree, recursion, recursive function, search and replace, generalized searching, PTC Mathcad.

Received: 09.07.2015



Bibliographic databases:


© Steklov Math. Inst. of RAS, 2025