Amr Elmasry
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Amr Elmasry has a total of 11 co-authors. Here are the top co-authors by number of shared publications:
Ahmed Shokry
Computer and Systems Engineering Department Alexandria University Egypt
2 shared publications- Hosam M. Mahmoud
The George Washington University
2 shared publications - Ahmed Belal
Department of Computer Engineering and Systems, Alexandria University, Egypt
1 shared publication - Ahmed Gamal Atta
Department of Mathematics, Faculty of Education, Ain Shams University, Roxy, Cairo 11341, Egypt
1 shared publication Amr Aly
Computer and Systems Engineering Department Alexandria University Egypt
1 shared publicationAyman Khalafallah
Computer and Systems Engineering Department Alexandria University Egypt
1 shared publication
Latest Publications
- Open Access
- 24 January 2025
- Published by MDPI AG in Fractal and Fractional
- Vol. 9 (2) , 78
An Efficient Petrov–Galerkin Scheme for the Euler–Bernoulli Beam Equation via Second-Kind Chebyshev Polynomials
The current article introduces a Petrov–Galerkin method (PGM) to address the fourth-order uniform Euler–Bernoulli pinned–pinned beam equation. Utilizing a suitable combination of second-kind Chebyshev polynomials as a basis in spatial variables, the proposed method elegantly and simultaneously satisfies pinned–pinned and clamped–clamped boundary conditions. To make PGM application easier, explicit formulas for the inner product between these basis functions and their derivatives with second-kind Chebyshev polynomials are derived. This leads to a simplified system of algebraic equations with a recognizable pattern that facilitates effective inversion to produce an approximate spectral solution. Presentations are made regarding the method’s convergence analysis and the computational cost of matrix inversion. The efficiency of the method described in precisely solving the Euler–Bernoulli beam equation under different scenarios has been validated by numerical testing. Additionally, the procedure proposed in this paper is more effective compared to other existing techniques.
- 24 January 2025
- Published by MDPI AG in Fractal and Fractional
- Vol. 9 (2) , 78
Open AccessAn Efficient Petrov–Galerkin Scheme for the Euler–Bernoulli Beam Equation via Second-Kind Chebyshev Polynomials
The current article introduces a Petrov–Galerkin method (PGM) to address the fourth-order uniform Euler–Bernoulli pinned–pinned beam equation. Utilizing a suitable combination of second-kind Chebyshev polynomials as a basis in spatial variables, the proposed method elegantly and simultaneously satisfies pinned–pinned and clamped–clamped boundary conditions. To make PGM application easier, explicit formulas for the inner product between these basis functions and their derivatives with second-kind Chebyshev polynomials are derived. This leads to a simplified system of algebraic equations with a recognizable pattern that facilitates effective inversion to produce an approximate spectral solution. Presentations are made regarding the method’s convergence analysis and the computational cost of matrix inversion. The efficiency of the method described in precisely solving the Euler–Bernoulli beam equation under different scenarios has been validated by numerical testing. Additionally, the procedure proposed in this paper is more effective compared to other existing techniques.
- Open Access
Verifying Shortest Paths in Linear Time
In this paper we propose a linear-time certifying algorithm for the single-source shortest-path problem capable of verifying graphs with positive, negative, and zero arc weights. Previously proposed linear-time approaches only work for graphs with positive arc weights.
Open AccessVerifying Shortest Paths in Linear Time
In this paper we propose a linear-time certifying algorithm for the single-source shortest-path problem capable of verifying graphs with positive, negative, and zero arc weights. Previously proposed linear-time approaches only work for graphs with positive arc weights.
- Open Access
Breaking the Bellman-Ford Shortest-Path Bound
In this paper we give a single-source shortest-path algorithm that breaks, after over 65 years, the $O(n \cdot m)$ bound for the running time of the Bellman-Ford-Moore algorithm, where $n$ is the number of vertices and $m$ is the number of arcs of the graph. Our algorithm converts the input graph to a graph with nonnegative weights by performing at most $\min(2 \cdot \sqrt{n},2 \cdot \sqrt{m/\log n})$ calls to a modified version of Dijkstra's algorithm, such that the shortest-path trees are the same for the new graph as those for the original. When Dijkstra's algorithm is implemented using Fibonacci heaps, the running time of our algorithm is therefore $O(\sqrt{n} \cdot m + n \cdot \sqrt{m \log n})$.Open AccessBreaking the Bellman-Ford Shortest-Path Bound
In this paper we give a single-source shortest-path algorithm that breaks, after over 65 years, the $O(n \cdot m)$ bound for the running time of the Bellman-Ford-Moore algorithm, where $n$ is the number of vertices and $m$ is the number of arcs of the graph. Our algorithm converts the input graph to a graph with nonnegative weights by performing at most $\min(2 \cdot \sqrt{n},2 \cdot \sqrt{m/\log n})$ calls to a modified version of Dijkstra's algorithm, such that the shortest-path trees are the same for the new graph as those for the original. When Dijkstra's algorithm is implemented using Fibonacci heaps, the running time of our algorithm is therefore $O(\sqrt{n} \cdot m + n \cdot \sqrt{m \log n})$. - 25 July 2021
- Published by Springer Nature in Acta Informatica
- Vol. 59 (2-3) , 245-281
Regular numeral systems for data structures
- 25 July 2021
- Published by Springer Nature in Acta Informatica
- Vol. 59 (2-3) , 245-281
Regular numeral systems for data structures
- 1 October 2019
- Published by Elsevier in Information and Computation
- Vol. 268, 104436
Optimal prefix codes with fewer distinct codeword lengths are faster to construct
- 1 October 2019
- Published by Elsevier in Information and Computation
- Vol. 268, 104436
Optimal prefix codes with fewer distinct codeword lengths are faster to construct
A new algorithm for the shortest‐path problem
In this article we propose a new single‐source shortest‐path algorithm that achieves the same O(n · m) time bound as the Bellman‐Ford‐Moore algorithm but outperforms it and other state‐of‐the‐art algorithms in many cases in practice. Our claims are supported by experimental evidence.
A new algorithm for the shortest‐path problem
In this article we propose a new single‐source shortest‐path algorithm that achieves the same O(n · m) time bound as the Bellman‐Ford‐Moore algorithm but outperforms it and other state‐of‐the‐art algorithms in many cases in practice. Our claims are supported by experimental evidence.
- 31 December 2012
- Published by Elsevier in Journal of Discrete Algorithms
- Vol. 17, 45-50
Enumerating trichromatic triangles containing the origin in linear time
- 31 December 2012
- Published by Elsevier in Journal of Discrete Algorithms
- Vol. 17, 45-50
Enumerating trichromatic triangles containing the origin in linear time
- 1 June 2011
- Published by Cambridge University Press (CUP) in Advances in Applied Probability
- Vol. 43 (02) , 524-544
Analysis of swaps in radix selection
Radix Sort is a sorting algorithm based on analyzing digital data. We study the number of swaps made by Radix Select (a one-sided version of Radix Sort) to find an element with a randomly selected rank. This kind of grand average provides a smoothing over all individual distributions for specific fixed-order statistics. We give an exact analysis for the grand mean and an asymptotic analysis for the grand variance, obtained by poissonization, the Mellin transform, and depoissonization. The digital data model considered is the Bernoulli(p). The distributions involved in the swaps experience a phase change between the biased cases (p≠ ½) and the unbiased case (p= ½). In the biased cases, the grand distribution for the number of swaps (when suitably scaled) converges to that of a perpetuity built from a two-point distribution. The tool for this proof is contraction in the Wasserstein metric space, and identifying the limit as the fixed-point solution of a distributional equation. In the unbiased case the same scaling for the number of swaps gives a limiting constant in probability.
- 1 June 2011
- Published by Cambridge University Press (CUP) in Advances in Applied Probability
- Vol. 43 (02) , 524-544
Analysis of swaps in radix selection
Radix Sort is a sorting algorithm based on analyzing digital data. We study the number of swaps made by Radix Select (a one-sided version of Radix Sort) to find an element with a randomly selected rank. This kind of grand average provides a smoothing over all individual distributions for specific fixed-order statistics. We give an exact analysis for the grand mean and an asymptotic analysis for the grand variance, obtained by poissonization, the Mellin transform, and depoissonization. The digital data model considered is the Bernoulli(p). The distributions involved in the swaps experience a phase change between the biased cases (p≠ ½) and the unbiased case (p= ½). In the biased cases, the grand distribution for the number of swaps (when suitably scaled) converges to that of a perpetuity built from a two-point distribution. The tool for this proof is contraction in the Wasserstein metric space, and identifying the limit as the fixed-point solution of a distributional equation. In the unbiased case the same scaling for the number of swaps gives a limiting constant in probability.
- 1 June 2011
- Published by Cambridge University Press (CUP) in Advances in Applied Probability
- Vol. 43 (2) , 524-544
Analysis of swaps in radix selection
Radix Sort is a sorting algorithm based on analyzing digital data. We study the number of swaps made by Radix Select (a one-sided version of Radix Sort) to find an element with a randomly selected rank. This kind of grand average provides a smoothing over all individual distributions for specific fixed-order statistics. We give an exact analysis for the grand mean and an asymptotic analysis for the grand variance, obtained by poissonization, the Mellin transform, and depoissonization. The digital data model considered is the Bernoulli(p). The distributions involved in the swaps experience a phase change between the biased cases (p ≠ ½) and the unbiased case (p = ½). In the biased cases, the grand distribution for the number of swaps (when suitably scaled) converges to that of a perpetuity built from a two-point distribution. The tool for this proof is contraction in the Wasserstein metric space, and identifying the limit as the fixed-point solution of a distributional equation. In the unbiased case the same scaling for the number of swaps gives a limiting constant in probability.
- 1 June 2011
- Published by Cambridge University Press (CUP) in Advances in Applied Probability
- Vol. 43 (2) , 524-544
Analysis of swaps in radix selection
Radix Sort is a sorting algorithm based on analyzing digital data. We study the number of swaps made by Radix Select (a one-sided version of Radix Sort) to find an element with a randomly selected rank. This kind of grand average provides a smoothing over all individual distributions for specific fixed-order statistics. We give an exact analysis for the grand mean and an asymptotic analysis for the grand variance, obtained by poissonization, the Mellin transform, and depoissonization. The digital data model considered is the Bernoulli(p). The distributions involved in the swaps experience a phase change between the biased cases (p ≠ ½) and the unbiased case (p = ½). In the biased cases, the grand distribution for the number of swaps (when suitably scaled) converges to that of a perpetuity built from a two-point distribution. The tool for this proof is contraction in the Wasserstein metric space, and identifying the limit as the fixed-point solution of a distributional equation. In the unbiased case the same scaling for the number of swaps gives a limiting constant in probability.
- 7 October 2010
- Published by Taylor & Francis in International Journal of Computer Mathematics
- Vol. 87 (14) , 3096-3110
Pairing heaps, scrambled pairing and square-root trees
Fredman et al. have shown that the amortized cost for deleting the item with the minimum value from a pairing heap is O(√n), no matter how the pairing is done [M. Fredman, R. Sedgewick, D. Sleator, and R. Tarjan, The Pairing heap: a new form of self-adjusting heap, Algorithmica 1(1) (1986), pp. 111–129]. In this paper, this upper bound is shown to be realizable (indicating that their analysis is tight). More precisely, starting with any n-node heap, we consider an alternating sequence of the operations: delete-min and insert; and give a pairing strategy for which Θ(√n) is the amortized cost per delete-min, irrespective of the initial heap structure. More interesting is that, starting with any initial structure, the heap will converge after O(n 1.5) operations to the same structure, which we call the square-root tree.
- 7 October 2010
- Published by Taylor & Francis in International Journal of Computer Mathematics
- Vol. 87 (14) , 3096-3110
Pairing heaps, scrambled pairing and square-root trees
Fredman et al. have shown that the amortized cost for deleting the item with the minimum value from a pairing heap is O(√n), no matter how the pairing is done [M. Fredman, R. Sedgewick, D. Sleator, and R. Tarjan, The Pairing heap: a new form of self-adjusting heap, Algorithmica 1(1) (1986), pp. 111–129]. In this paper, this upper bound is shown to be realizable (indicating that their analysis is tight). More precisely, starting with any n-node heap, we consider an alternating sequence of the operations: delete-min and insert; and give a pairing strategy for which Θ(√n) is the amortized cost per delete-min, irrespective of the initial heap structure. More interesting is that, starting with any initial structure, the heap will converge after O(n 1.5) operations to the same structure, which we call the square-root tree.