Efficient Text Formatting: A Comparative Analysis of Algorithmic Approaches

Efficient text formatting, especially when printing with mono spaced fonts, is a very important factor. In an attempt to address the problem of printing clean paragraphs, this work has been presented in the form of implementing and trying to demonstrate the efficiency of a large variety of algorithms. The algorithms include Binary Search, Shortest Path, Greedy Approach, Branch and Bound, Divide and Conquer, and Brute Force. This problem tries to format a set of texts into lines of fixed given width, where at a time it looks appropriate and readable, trying to minimize the number of vacant places and blank spaces. Hence, this dissertation dwells on a text formatting technique that possesses the least number of vacant places and blank spaces yet manages to look nice. In general, a comparison of the methods in the number of vacant places on a line raised to the cube, as a cost metric and the runtime complexity. Performance testing on a very broad spectrum of test scenarios is also there, which is low word count, random content, fixed character length, and fixed word count. The implementation of this problem will help us understand what method is effective and where so that it can be used in a real-world scenario. Text formatting jobs in domains like publishing, academia, and web development are crucial processes for efficient communication. Among these, the Dynamic Programming and Divide and Conquer algorithms achieved the highest performance, with a minimal total cost of 2529 and optimal line breaks in fixed character-length paragraphs. The results demonstrate that these algorithms strike an ideal balance between runtime efficiency and formatting quality, making them well-suited for real-world applications.

Authors

Institutions

Publication Details

Published
2024-11-14
DOI
https://doi.org/10.1109/incowoco64194.2024.10863158
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Efficient Text Formatting: A Comparative Analysis of Algorithmic Approaches

Bandaru Jaya Nandini, Alind Sahay, Siddareddy Gari Harshika, Mamidi Leha Sahithi
Natural Language Processing Techniques
article

Efficient Text Formatting: A Comparative Analysis of Algorithmic Approaches

Bandaru Jaya Nandini, Alind Sahay, Siddareddy Gari Harshika, Mamidi Leha Sahithi
article en

Abstract

Efficient text formatting, especially when printing with mono spaced fonts, is a very important factor. In an attempt to address the problem of printing clean paragraphs, this work has been presented in the form of implementing and trying to demonstrate the efficiency of a large variety of algorithms. The algorithms include Binary Search, Shortest Path, Greedy Approach, Branch and Bound, Divide and Conquer, and Brute Force. This problem tries to format a set of texts into lines of fixed given width, where at a time it looks appropriate and readable, trying to minimize the number of vacant places and blank spaces. Hence, this dissertation dwells on a text formatting technique that possesses the least number of vacant places and blank spaces yet manages to look nice. In general, a comparison of the methods in the number of vacant places on a line raised to the cube, as a cost metric and the runtime complexity. Performance testing on a very broad spectrum of test scenarios is also there, which is low word count, random content, fixed character length, and fixed word count. The implementation of this problem will help us understand what method is effective and where so that it can be used in a real-world scenario. Text formatting jobs in domains like publishing, academia, and web development are crucial processes for efficient communication. Among these, the Dynamic Programming and Divide and Conquer algorithms achieved the highest performance, with a minimal total cost of 2529 and optimal line breaks in fixed character-length paragraphs. The results demonstrate that these algorithms strike an ideal balance between runtime efficiency and formatting quality, making them well-suited for real-world applications.

Amrita Vishwa Vidyapeetham (IN)
Openalex Percentile: Top 75%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Efficient Text Formatting: A Comparative Analysis of Algorithmic Approaches — Bandaru Jaya Nandini, Alind Sahay, et al. · (2024) | TGRS Research Map | TGRS