<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Using binominal theorem for expression tree comparing in Intelligent Tutoring Systems</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Andrey</forename><surname>Chukhray</surname></persName>
							<email>a.chukhray@khai.edu</email>
							<affiliation key="aff0">
								<orgName type="institution">National Aerospace University «Kharkiv Aviation Institute»</orgName>
								<address>
									<addrLine>Chkalova 17</addrLine>
									<postCode>61070</postCode>
									<settlement>Kharkiv</settlement>
									<country key="UA">Ukraine</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">David</forename><surname>Dvinskykh</surname></persName>
							<email>d.dvinskykh@khai.edu</email>
							<affiliation key="aff0">
								<orgName type="institution">National Aerospace University «Kharkiv Aviation Institute»</orgName>
								<address>
									<addrLine>Chkalova 17</addrLine>
									<postCode>61070</postCode>
									<settlement>Kharkiv</settlement>
									<country key="UA">Ukraine</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Vitaliy</forename><surname>Narozhnyy</surname></persName>
							<email>v.narozhnyy@khai.edu</email>
							<affiliation key="aff0">
								<orgName type="institution">National Aerospace University «Kharkiv Aviation Institute»</orgName>
								<address>
									<addrLine>Chkalova 17</addrLine>
									<postCode>61070</postCode>
									<settlement>Kharkiv</settlement>
									<country key="UA">Ukraine</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Iryna</forename><surname>Trofymova</surname></persName>
							<email>i.trofymova@khai.edu</email>
							<affiliation key="aff0">
								<orgName type="institution">National Aerospace University «Kharkiv Aviation Institute»</orgName>
								<address>
									<addrLine>Chkalova 17</addrLine>
									<postCode>61070</postCode>
									<settlement>Kharkiv</settlement>
									<country key="UA">Ukraine</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Tetiana</forename><surname>Stoliarenko</surname></persName>
							<affiliation key="aff0">
								<orgName type="institution">National Aerospace University «Kharkiv Aviation Institute»</orgName>
								<address>
									<addrLine>Chkalova 17</addrLine>
									<postCode>61070</postCode>
									<settlement>Kharkiv</settlement>
									<country key="UA">Ukraine</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Using binominal theorem for expression tree comparing in Intelligent Tutoring Systems</title>
					</analytic>
					<monogr>
						<idno type="ISSN">1613-0073</idno>
					</monogr>
					<idno type="MD5">F151D4FF372C21EEF7BFAB7B094BFCCB</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2025-04-23T16:26+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>Expression tree, binomial theorem, comparing expression tree1 (T. Stoliarenko)</term>
					<term>0000-0002-8075-3664 (A. Chukhray)</term>
					<term>0000-0002-5094-4136 (D. Dvinskykh)</term>
					<term>0000-0003-1237-8118 (V. Narozhnyy)</term>
					<term>0000-0002-1537-5601 (I. Trofymova)</term>
					<term>0000-0002-7202-316X (T. Stoliarenko)</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>In this paper, a new operation for use in a hybrid expression tree was added. The activation functions for the original and modified tree when applying binomial theorem were described. The possibilities of detecting possible errors by decomposing the expression of the original tree using binomial theorem were extended.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>In recent years, there has been a significant growth in interactive learning due to the continuous development of computer capabilities. These include increased processor power, increased memory capacity, increased input-output capabilities, improved networking technologies, and increased efficiency in the development of modern software tools. The surge in machine learning was triggered by the Covid-19 pandemic <ref type="bibr" target="#b3">[4]</ref>.</p><p>Computer-based mathematics learning programmes (CBMPs) as a means of transferring knowledge and skills from teachers to students are in great demand in the modern world. As interest in these programmes grows, so do the expectations placed on them. Over time, CBMPs have evolved from simple testing software and e-textbooks to complex Intelligent Tutoring Systems. These systems are capable of adapting the learning process by adjusting the parameters depending on the individual learner's characteristics <ref type="bibr" target="#b3">[4]</ref>.</p><p>For such systems, it is necessary to have the ability to compare arithmetic expressions in order to determine whether the student has made the correct expression and to determine what errors the student has made. The previous article described a mechanism for comparing arithmetic expressions using non-binary expression trees. It described an algorithm for tree comparison, but there were few possibilities to analyse matched and non-matched nodes. The system allowed to detect missed minus signs and rounding errors, and the available operations were limited to addition, subtraction, multiplication, and division. <ref type="bibr" target="#b0">[1]</ref> In equivariant transformations of expressions, one may encounter a concept called binomial theorem. Particular cases of this theorem can be applied at the subconscious level, which complicates the task of comparing the original expression given by the teacher with the modified expression in the presence of an error, which was introduced by the student.</p><p>The binomial theorem is a result of expanding the non-negative powers of binomials or sums of two terms, where the coefficients of the terms in the expansion are the binomial coefficients. <ref type="bibr" target="#b1">[2]</ref> The most common case of the binomial theorem is <ref type="bibr" target="#b0">(1)</ref>, where binomial coefficients as (2) <ref type="bibr" target="#b2">[3]</ref>.</p><formula xml:id="formula_0">(𝑎 + 𝑏) 𝑛 = ∑ ( 𝑛 𝑘 ) 𝑎 𝑘 𝑏 𝑛−𝑘 𝑛 𝑘=0 = ( 𝑛 0 ) 𝑎 𝑛 + ( 𝑛 1 ) 𝑎 𝑛−1 𝑏 + ⋯ + ( 𝑛 𝑘 ) 𝑎 𝑛−𝑘 𝑏 𝑘 + ⋯ + ( 𝑛 𝑛 ) 𝑏 𝑛 ,<label>(1)</label></formula><formula xml:id="formula_1">( 𝑛 𝑘 ) = 𝑛! 𝑘! (𝑛 − 𝑘)! . (<label>2</label></formula><formula xml:id="formula_2">)</formula><p>These formulas contain an additional mathematical "exponentiation" operation in comparison with the operations described in the previous article, which determines the need to modernise the non-binary expression tree.</p><p>The aim of this paper is to develop a method for finding the applied binomial theorem in the original and modified expression tree.</p><p>Problems to be solved: 1. Add the possibility of storing the exponentiation operation to a certain degree; 2. Determine the model for searching the presence of transformation by binomial theorem in the modified tree in comparison with the original expression tree.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Hybrid Expression Tree</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Definition</head><p>A non-binary expression tree contains incoming and outgoing nodes, indicating parent and child nodes respectively. The child nodes had the same priority and could be shuffled at will among themselves.</p><p>The exponentiation operation has two operands, which are called base and exponent. Exponentiation does not have the commutativity property, which makes these operands not equivalent and prevents this operation from fitting into the previous expression tree model.</p><p>To fit this node denoting exponentiation, we need to define it as a unary operation where the only child node (in the previous non-binary expression tree definition) is the base of the degree. An additional service node is added to denote the exponent of degree. The additional service node is the root of a separate tree, which allows not only natural numbers but also integer expressions to be written in the future. Since the tree contains not only ordinary child nodes, but also service nodes, this tree will be called a hybrid expression tree in the future.</p><p>It is necessary not to confuse a hybrid tree with a tree that contains both binary <ref type="bibr" target="#b5">[6]</ref> and nonbinary nodes. The node of the exponentiation operation, although it resembles a binary node, but unlike the binary node it contains two unequal nodes, so this node is a special case of a hybrid tree node. In the future, when expanding the possible operations of the hybrid expression tree, the nodes will contain not only an unlimited number of child nodes, but also an unlimited number of service nodes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Parsing expression into hybrid expression tree</head><p>The basic logic of parsing an algebraic expression divided into tokens has not changed. When a token with the value "^" is encountered, the subsequent token is written as an additional service node, and the current node is written as the main single child node.</p><p>Exponentiation has level 5 in node levels, and the final hierarchy looks like: 1. addition operation 2. subtraction operation 3. multiplication operation 4. division operation 5. exponentiation operation 6. numerical node 7. special node defining the order of operations (brackets) Since the current article does not consider complex numbers, obtaining a negative number in the base will cause an error and impossibility in calculating the parent nodes of the expression tree. Therefore, the cases in which a negative number in the base is obtained will not be further considered in this article.</p><p>For the example we took expression (3), which in computer form has the form "1+(6+7)^(1+4)+5^4/(5+7)^3+3^(1+2)".</p><p>1 + (6 + 7) 1+4 + 5 4 (6 + 7) 3 + 3 1+2</p><p>(3) When transformed, the hybrid expression tree will look as shown in Figure <ref type="figure" target="#fig_0">1</ref>. As can be seen in Figure <ref type="figure" target="#fig_0">1</ref>, the base of the exponentiation operation is written as the left node, while the service node defining the exponent of the degree is written on the right.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Using Multiplication formulas for polynomials to compare hybrid expressions tree</head><p>The previous article described the logic for comparing nodes from the original tree to nodes in the modified tree. This logic will not be changed to use binomial theorem, but it will be extended to analyse redundant and missing nodes in the modified tree compared to the original tree. The lists of missing nodes will be searched using the activation function behind formula (4), where  </p><formula xml:id="formula_3">) ( ) ( ) ( ) ( ) ( ) G G G</formula><p>origin _ activate w type w pow type N w sum d N w 2</p><formula xml:id="formula_4">− − − = =  =  = (<label>4</label></formula><formula xml:id="formula_5">)</formula><p>If the activation function returns true, the original node is expanded using binomial theorem and the child nodes are compared with the redundant nodes from the modified tree using the "matching" function ( <ref type="formula" target="#formula_6">5</ref>) <ref type="bibr" target="#b0">[1]</ref>. Then all the found pairs are passed to the "sim" formula ( <ref type="formula" target="#formula_7">6</ref>) <ref type="bibr" target="#b0">[1]</ref> and summed up. The obtained sum is divided by the value obtained from the function " max Sim " (7) <ref type="bibr" target="#b0">[1]</ref> in which the original node decomposed by binomial theorem was passed. The generalised formula is shown by (8). </p><formula xml:id="formula_6">          =               <label>(5) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )</label></formula><formula xml:id="formula_7">* * GG ** ** max * ** * * x ,x matching N x ,N x G 2, value G x value G x ; , type x value; 0 Sim G x , value G x value G x ; , type x value; Sim G(x), G x ; 0 type x operation 1 Sim G x , G x , ; type x operation 0 x V G ;d x −−  −  =   =        =   =   =      =   +  =    =  ( ) G N x . −<label>(6) ( ) ( ) ( ) ( ) ( ) ( ) ( )</label></formula><formula xml:id="formula_8">G max G max x N x G 1 Sim G x , d x 0 Sim G x 2, d x 0 − −  −   +  =   =   <label>(7) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )</label></formula><formula xml:id="formula_9">** * x ,x matching G w ,W * max Sim G x ,G x modified _ activate G w , W 0.5 Sim G w   =  (8)</formula><p>If both functions return true, the comparison assumes that the student has decomposed the expression by binomial theorem, which gives an opportunity to compare the nodes of the just decomposed expression in the original tree and compare them with the extra nodes in the modified tree. As a result, it returns a map <ref type="bibr" target="#b4">[5]</ref> of correspondences between nodes to be added, corrected, replaced, or deleted and textual support on how this should be done.</p><p>In the previous article <ref type="bibr" target="#b0">[1]</ref>, the arithmetic expression "1*(-2)+3*4/-5+5*(3+7)" as the original expression and "1*2-3*4/5+6*(1+3)" as the modified expression were considered as an example. For this article, the original and modified expression will be changed by adding "(265+456)^3" and "265^3+3*265^2*456+265*456^2+456^3". As a result, the original expression will look like "1*(-2)+3*4/-5+5*(3+7)+(265+456)^3" (Figure <ref type="figure" target="#fig_4">2</ref>).  During comparing original tree with modified tree, the original activate function and modified activate function returned true value (Figure <ref type="figure" target="#fig_6">4</ref>), so binominal theorem was applied to original tree. (Figure <ref type="figure" target="#fig_7">5</ref>).  The suggestion for transforming original expression tree to modified expression tree is shown in Figure <ref type="figure" target="#fig_5">3</ref>. It shows that all nodes are matched except for:</p><p>• "6" and this should be replaced with "5"; • "1" and this should be replaced with "7"; • "265*456^2" and this non-matched node should be corrected by adding additional "3" operand to multiply operation; • "1*2" which should be fixed by adding minus.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conclusions</head><p>This system is unique and has no analogues to date, so it is impossible to provide a comparative characteristic with known analogues. In this paper, the existing non-binary tree model was improved by introducing a hybrid tree to be able to use exponentiation node. When comparing hybrid trees, the comparison model was improved by using binomial theorem. Functions were also implemented to determine usage of binomial theorem in the modified expression tree in order to decompose the expression for further comparison. Without using the binomial theorem, the comparison model would show the error in the decomposition of a sum of two variables of non-negative integer degree, even if the error is elsewhere in the arithmetic expression.</p><p>Future articles will apply the expression tree to learn solving systems of linear equations using Cramer's method.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Figure 1 :</head><label>1</label><figDesc>Figure 1: Hybrid Expression Tree for «1+(6+7)^(1+4)+5^4/(5+7)^3+3^(1+2)».As can be seen in Figure1, the base of the exponentiation operation is written as the left node, while the service node defining the exponent of the degree is written on the right.</figDesc><graphic coords="3,219.55,203.45,155.88,289.25" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>(</head><label></label><figDesc></figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_4"><head>Figure 2 :</head><label>2</label><figDesc>Figure 2: Hybrid Expression Tree for 1*(-2)+3*4/-5+5*(3+7)+(265+456)^3".</figDesc><graphic coords="4,219.85,518.17,155.30,232.95" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_5"><head>Figure 3 :</head><label>3</label><figDesc>Figure 3: Hybrid Expression Tree for "1*2-3*4/5+6*(1+3)+265^3+3*265^2*456+265*456^2+ +456^3".During comparing original tree with modified tree, the original activate function and modified activate function returned true value (Figure4), so binominal theorem was applied to original tree. (Figure5).</figDesc><graphic coords="5,86.20,356.22,424.80,162.60" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_6"><head>Figure 4 :</head><label>4</label><figDesc>Figure 4: Activation function results and the suggestions for transforming the modified tree to the original tree.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_7"><head>Figure 5 :</head><label>5</label><figDesc>Figure 5: Original expression tree after applying binominal theorem.</figDesc><graphic coords="5,163.43,544.61,268.13,198.75" type="bitmap" /></figure>
		</body>
		<back>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">Using an expression tree for adaptive learning</title>
		<author>
			<persName><forename type="first">A</forename><surname>Chukhray</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Dvinskykh</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Narozhnyy</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Stoliarenko</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">2023 13th International Conference on Dependable Systems</title>
				<meeting><address><addrLine>DESSERT)</addrLine></address></meeting>
		<imprint>
			<publisher>Services and Technologies</publisher>
			<date type="published" when="2023">2023</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<monogr>
		<title level="m" type="main">Binomial Theorem</title>
		<author>
			<persName><forename type="first">P</forename><surname>Corn</surname></persName>
		</author>
		<author>
			<persName><forename type="first">H</forename><forename type="middle">Z</forename><surname>Vee</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename></persName>
		</author>
		<ptr target="https://brilliant.org/wiki/binomial-theorem-n-choose-k/" />
		<imprint/>
	</monogr>
	<note type="report_type">Brilliant.org</note>
</biblStruct>

<biblStruct xml:id="b2">
	<monogr>
		<title level="m" type="main">Binomial Theorem</title>
		<author>
			<persName><forename type="first">E</forename><forename type="middle">W</forename><surname>Weisstein</surname></persName>
		</author>
		<ptr target="https://mathworld.wolfram.com/BinomialTheorem.html" />
		<imprint/>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<monogr>
		<author>
			<persName><forename type="first">A</forename><surname>Chukhray</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Yashina</surname></persName>
		</author>
		<title level="m">Models and software for intelligent web-based testing system in mathematics</title>
				<imprint>
			<publisher>CEUR-WS</publisher>
			<date type="published" when="2021">2021</date>
			<biblScope unit="volume">3003</biblScope>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Visualizing recursion using code and stack animation</title>
		<author>
			<persName><forename type="first">Y</forename><forename type="middle">D</forename><surname>Liang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Bethely</surname></persName>
		</author>
		<author>
			<persName><forename type="first">G</forename><forename type="middle">S</forename><surname>Walia</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Journal of Computing Sciences in Colleges</title>
		<imprint>
			<biblScope unit="volume">37</biblScope>
			<biblScope unit="issue">4</biblScope>
			<biblScope unit="page" from="41" to="49" />
			<date type="published" when="2021">2021</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Translating a math word problem to a expression tree</title>
		<author>
			<persName><forename type="first">L</forename><surname>Wang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Y</forename><surname>Wang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Cai</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Zhang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">X</forename><surname>Liu</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing</title>
				<meeting>the 2018 Conference on Empirical Methods in Natural Language Processing</meeting>
		<imprint>
			<date type="published" when="2007">2007. 2018</date>
		</imprint>
	</monogr>
	<note>Learning 2.1</note>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
