Loading...
Search for: randomized-algorithm
0.011 seconds
Total 26 records

    Approximation algorithms for visibility computation and testing over a terrain

    , Article Applied Geomatics ; Volume 9, Issue 1 , 2017 , Pages 53-59 ; 18669298 (ISSN) Alipour, S ; Ghodsi, M ; Güdükbay, U ; Golkari, M ; Sharif University of Technology
    Springer Verlag  2017
    Abstract
    Given a 2.5D terrain and a query point p on or above it, we want to find the triangles of terrain that are visible from p. We present an approximation algorithm to solve this problem. We implement the algorithm and test it on real data sets. The experimental results show that our approximate solution is very close to the exact solution and compared to the other similar works, the computational cost of our algorithm is lower. We analyze the computational complexity of the algorithm. We consider the visibility testing problem where the goal is to test whether a given triangle of the terrain is visible or not with respect to p. We present an algorithm for this problem and show that the average... 

    A simple randomized algorithm for all nearest neighbors

    , Article 31st Canadian Conference on Computational Geometry, CCCG 2019, 8 August 2019 through 10 August 2019 ; 2019 , Pages 94-98 Ebadian, S ; Zarrabi Zadeh, H ; Sharif University of Technology
    Canadian Conference on Computational Geometry  2019
    Abstract
    Given a set P of n points in the plane, the all nearest neighbors problem asks for finding the closest point in P for each point in the set. The following folklore algorithm is used for the problem in practice: Pick a line in a random direction, project all points onto the line, and then search for the nearest neighbor of each point in a small vicinity of that point on the line. It is widely believed that the expected number of points needed to be checked by the algorithm in the vicinity of each point is O(pn) on average. We confirm this conjecture in affirmative by providing a careful analysis on the expected number of comparisons made by the algorithm. We also present a matching lower... 

    A simple randomized algorithm for all nearest neighbors

    , Article 31st Canadian Conference on Computational Geometry, CCCG 2019, 8 August 2019 through 10 August 2019 ; 2019 , Pages 94-98 Ebadian, S ; Zarrabi Zadeh, H ; Sharif University of Technology
    Canadian Conference on Computational Geometry  2019
    Abstract
    Given a set P of n points in the plane, the all nearest neighbors problem asks for finding the closest point in P for each point in the set. The following folklore algorithm is used for the problem in practice: Pick a line in a random direction, project all points onto the line, and then search for the nearest neighbor of each point in a small vicinity of that point on the line. It is widely believed that the expected number of points needed to be checked by the algorithm in the vicinity of each point is O(pn) on average. We confirm this conjecture in affirmative by providing a careful analysis on the expected number of comparisons made by the algorithm. We also present a matching lower... 

    An improved constant-factor approximation algorithm for planar visibility counting problem

    , Article Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2 August 2016 through 4 August 2016 ; Volume 9797 , 2016 , Pages 209-221 ; 03029743 (ISSN) ; 9783319426334 (ISBN) Alipour, S ; Ghodsi, M ; Jafari, A ; Sharif University of Technology
    Springer Verlag  2016
    Abstract
    Given a set S of n disjoint line segments in ℝ2, the visibility counting problem (VCP) is to preprocess S such that the number of segments in S visible from any query point p can be computed quickly. This problem can trivially be solved in logarithmic query time using O(n4) preprocessing time and space. Gudmundsson and Morin proposed a 2-approximation algorithm for this problem with a tradeoff between the space and the query time. They answer any query in Oε(n1−α) with Oε(n2+2α) of preprocessing time and space, where α is a constant 0 ≤ α ≤ 1, ε > 0 is another constant that can be made arbitrarily small, and Oε(f(n)) = O(f(n)nε). In this paper, we propose a randomized approximation algorithm... 

    Proximity-Aware balanced allocations in cache networks

    , Article 31st IEEE International Parallel and Distributed Processing Symposium, IPDPS 2017, 29 May 2017 through 2 June 2017 ; 2017 , Pages 1068-1077 ; 9781538639146 (ISBN) Pourmiri, A ; Jafari Siavoshan, M ; Shariatpanahi, S. P ; Sharif University of Technology
    Institute of Electrical and Electronics Engineers Inc  2017
    Abstract
    We consider load balancing in a network of caching servers delivering contents to end users. Randomized load balancing via the so-called power of two choices is a well-known approach in parallel and distributed systems that reduces network imbalance. In this paper, we propose a randomized load balancing scheme which simultaneously considers cache size limitation and proximity in the server redirection process. Since the memory limitation and the proximity constraint cause correlation in the server selection process, we may not benefit from the power of two choices in general. However, we prove that in certain regimes, in terms of memory limitation and proximity constraint, our scheme results... 

    Randomized approximation algorithms for planar visibility counting problem

    , Article Theoretical Computer Science ; Volume 707 , 2018 , Pages 46-55 ; 03043975 (ISSN) Alipour, S ; Ghodsi, M ; Jafari, A ; Sharif University of Technology
    Elsevier B.V  2018
    Abstract
    Given a set S of n disjoint line segments in R2, the visibility counting problem (VCP) is to preprocess S such that the number of segments in S visible from any query point p can be computed quickly. This problem can be solved trivially in O(log⁡n) query time using O(n4log⁡n) preprocessing time and O(n4) space. Gudmundsson and Morin (2010) [10] proposed a 2-approximation algorithm for this problem with a tradeoff between the space and the query time. For any constant 0≤α≤1, their algorithm answers any query in Oϵ(m(1−α)/2) time with Oϵ(m1+α) of preprocessing time and space, where ϵ>0 is a constant that can be made arbitrarily small and Oϵ(f(n))=O(f(n)nϵ) and m=O(n2) is a number that depends... 

    Visibility testing and counting for uncertain segments

    , Article Theoretical Computer Science ; Volume 779 , 2019 , Pages 1-7 ; 03043975 (ISSN) Abam, M. A ; Alipour, S ; Ghodsi, M ; Mahdian, M ; Sharif University of Technology
    Elsevier B.V  2019
    Abstract
    We study two well-known planar visibility problems, namely visibility testing and visibility counting, in a model where there is uncertainty about the input data. The standard versions of these problems are defined as follows: we are given a set S of n segments in R 2 , and we would like to preprocess S so that we can quickly answer queries of the form: is the given query segment s∈S visible from the given query point q∈R 2 (for visibility testing) and how many segments in S are visible from the given query point q∈R 2 (for visibility counting). In our model of uncertainty, each segment may or may not exist, and if it does, it is located in one of finitely many possible locations, given by a... 

    Efcient Algorithms for Visibility Testing of Objects and Counting

    , Ph.D. Dissertation Sharif University of Technology Alipour, Sharareh (Author) ; Ghodsi, Mohammad (Supervisor)
    Abstract
    Planar visibility computing is defned as determining the region of the plane that is visible from a specifc observer. This concept has many applications in computer graphics, robotic and computer games. In certain visibility problems, counting the number of visible objects in an appropriate time is required. For obtaining a solution fast, current algorithms give an approximated count. In this thesis, we consider visibility testing problem and visibility counting problem.For a given set S = fs1; s2; :::; sng of non-intersecting segments and a query point p in the plane, the visibility testing problem checks the inter-visibility of p and a segment si 2 S and the visibility counting problem... 

    Online Conflict-free Coloring of Regions

    , M.Sc. Thesis Sharif University of Technology Beikmohammadi, Arash (Author) ; Abam, Mohammad Ali (Supervisor)
    Abstract
    Let S be a set of n regions of some fixed type (such as discs, axis-parallel rectangles, etc). A conflict-free coloring (CF-coloring) of S is an assignment of colors to each region such that for every point p covered by a non-empty subset of S, there is a region with a unique color among the regions containing p. The goal is to use minimum number of colors. In this thesis we study online CF-coloring for axis-parallel rectangles in the plane which rectangles are on x-axis. We present a randomized algorithm with O(〖log〗^6 n) colors. We also prove that this algorithm works with high probability  

    Randomized algorithms for comparison-based search

    , Article Advances in Neural Information Processing Systems 24: 25th Annual Conference on Neural Information Processing Systems 2011, NIPS 2011, 12 December 2011 through 14 December 2011 ; December , 2011 ; 9781618395993 (ISBN) Tschopp, D ; Diggavi, S ; Delgosha, P ; Mohajer, S ; Sharif University of Technology
    Abstract
    This paper addresses the problem of finding the nearest neighbor (or one of the R-nearest neighbors) of a query object q in a database of n objects, when we can only use a comparison oracle. The comparison oracle, given two reference objects and a query object, returns the reference object most similar to the query object. The main problem we study is how to search the database for the nearest neighbor (NN) of a query, while minimizing the questions. The difficulty of this problem depends on properties of the underlying database. We show the importance of a characterization: combinatorial disorder D which defines approximate triangle inequalities on ranks. We present a lower bound of Ω(Dlog... 

    Visibility testing and counting

    , Article Information Processing Letters ; Volume 115, Issue 9 , September , 2015 , Pages 649-654 ; 00200190 (ISSN) Alipour, S ; Ghodsi, M ; Zarei, A ; Pourreza, M ; Sharif University of Technology
    Elsevier  2015
    Abstract
    For a set of n disjoint line segments S in R2, the visibility testing problem (VTP) is to test whether the query point p sees a query segment s∈S. For this configuration, the visibility counting problem (VCP) is to preprocess S such that the number of visible segments in S from any query point p can be computed quickly. In this paper, we solve VTP in expected logarithmic query time using quadratic preprocessing time and space. Moreover, we propose a (1+δ)-approximation algorithm for VCP using at most quadratic preprocessing time and space. The query time of this method is Oε (1/δ 2√n) where Oε (f(n))=O(f(n)nε) and ε>0 is an arbitrary constant number  

    On the rectangle escape problem

    , Article Theoretical Computer Science ; Volume 689 , 2017 , Pages 126-136 ; 03043975 (ISSN) Ahmadinejad, A ; Assadi, S ; Emamjomeh Zadeh, E ; Yazdanbod, S ; Zarrabi Zadeh, H ; Sharif University of Technology
    Abstract
    Motivated by the bus escape routing problem in printed circuit boards, we study the following rectangle escape problem: given a set S of n axis-aligned rectangles inside an axis-aligned rectangular region R, extend each rectangle in S toward one of the four borders of R so that the maximum density over the region R is minimized. The density of each point p∈R is defined as the number of extended rectangles containing p. We show that the problem is hard to approximate to within a factor better than 3/2 in general. When the optimal density is sufficiently large, we provide a randomized algorithm that achieves an approximation factor of 1+ε with high probability improving over the current best... 

    Testing Properties of Geometric Figures

    , M.Sc. Thesis Sharif University of Technology Rajabi, Amir Hossein (Author) ; Abam, Mohammad Ali (Supervisor)
    Abstract
    In this thesis, we investigate some problems in Sublinear field. We designed an algorithm that approximate the minimum distance of a shape to be a disk. In the first algorithm, we assumed that its input is a matrix and 1s in the matrix represent black pixels and 0s in the matrix represent white pixels. Also, we designed another algorithm that its input is a data structure contains the positions of a convex shape and we can sample uniformly from its pixels. In this problem similar to the first problem we must approximate the minimum distance of a shape to be a disk. Finally, we designed an algorithm for counting disks in a matrix. The input is a matrix that it contains some disks which have... 

    Real-Time Hybrid Motion Planning For Autonomous Uavs in Dynamic Environments

    , M.Sc. Thesis Sharif University of Technology Mashayekh, Ehsan (Author) ; Alasty, Aria (Supervisor)
    Abstract
    This study is about real-time hybrid motion planning for autonomous UAVs in dynamic environments. The algorithm is based on system dynamic quantization to trim trajectories and maneuvers, constructing a library of primitives which guarantee the controllability of the system. Random algorithms introduced in literature of motion planning have an offline phase, reducing the computational complexity of online phase. By using dynamic quantization, we have achieved a new totally online algorithm, increasing the probability of finding a solution. Dynamic programming is the core of this algorithm, instead of offline calculations in before random algorithms. In order to decrease the exponential... 

    Online Bipartite Matching

    , M.Sc. Thesis Sharif University of Technology Fateminejad, Faezeh (Author) ; Foroughmand Aarabi, Mohammad Hadi (Supervisor)
    Abstract
    Online problems were first introduced in 1980s due to process the data arise from the internet. An Online algorithm is an algorithm which takes a part of input at each step and should give an irrevocable answer before entrance of the rest of data. Online problems are considered when the size of the input is substantial or there are time limitations to wait for the whole input to arrive. One of the first online algorithms discussed was the online bipartite matching. In this problem there exists a bipartite graph with one offline part which is present from the beginning and nodes of the other part entering one by one with all of their corresponding edges. At the entrance of each node the... 

    Releasing All-Pairs Shortest Distances of Public Graphs with Differential Privacy

    , M.Sc. Thesis Sharif University of Technology Tofighi Mohammadi, Alireza (Author) ; Ebrahimi Boroojeni, Javad (Supervisor)
    Abstract
    In the context of differential privacy, a data holder has confidential information about users. The goal is to provide a randomized algorithm that takes this information as input and outputs an aggregation of the input. The algorithm must have the property that for any neighboring input pairs, the output distribution of the algorithm is close. One problem in differential privacy research is the release of shortest distances in a weighted graph. This model, first studied by Adam Sealfon, involves an edge-weighted graph G=(V, E) with weights w : E → R, where the topology of the graph is public and the private information is the weight of the edges. The aim is to provide an (ϵ, δ)-DP algorithm... 

    Improved algorithms for distributed balanced clustering

    , Article 3rd IFIP WG 1.8 International Conference on Topics in Theoretical Computer Science, TTCS 2020, 1 July 2020 through 2 July 2020 ; Volume 12281 LNCS , 2020 , Pages 72-84 Mirjalali, K ; Zarrabizadeh, H ; Sharif University of Technology
    Springer Science and Business Media Deutschland GmbH  2020
    Abstract
    We study a weighted balanced version of the k-center problem, where each center has a fixed capacity, and each element has an arbitrary demand. The objective is to assign demands of the elements to the centers, so as the total demand assigned to each center does not exceed its capacity, while the maximum distance between centers and their assigned elements is minimized. We present a deterministic O(1)-approximation algorithm for this generalized version of the k-center problem in the distributed setting, where data is partitioned among a number of machines. Our algorithm substantially improves the approximation factor of the current best randomized algorithm available for the problem. We... 

    Simple streaming algorithms for edge coloring

    , Article 30th Annual European Symposium on Algorithms, ESA 2022, 5 September 2022 through 9 September 2022 ; Volume 244 , 2022 ; 18688969 (ISSN); 9783959772471 (ISBN) Ansari, M ; Saneian, M ; Zarrabi Zadeh, H ; Sharif University of Technology
    Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing  2022
    Abstract
    We revisit the classical edge coloring problem for general graphs in the streaming model. In this model, the input graph is presented as a stream of edges, and the algorithm must report colors assigned to the edges in a streaming fashion, using a memory of size O(n polylog n) on graphs of up to O(n2) edges. In ESA 2019 and SOSA 2021, two elegant randomized algorithms were presented for this problem in the adversarial edge arrival model, where the latest one colors any input graph using O(Δ2/s) colors with high probability in O (ns) space. In this short note, we propose two extremely simple streaming algorithms that achieve the same color and space bounds deterministically. Besides being... 

    A Randomized Cache Policy for Network of Caches

    , M.Sc. Thesis Sharif University of Technology Farhadi, Pegah (Author) ; Sarbazi-Azad, Hamid (Supervisor) ; Seyed Rezaza Dalali, Mostafa (Co-Supervisor)
    Abstract
    In a network of caches, the precious cache space must be efficiently managed. A wasteful cache management algorithm might make redundant copies of the same content at several caches. Therefore, there must be an algorithm (a.k.a admission policy) to find a proper location in the network for every content to be cached. One way to locate different content at different caches is based on content popularity. Thus, popular content is closer to requesters. However, measuring content popularity at every router is not practical due to the high overhead the algorithm imposes on the routers. A more practical approach is to distribute different parts of the content to several caches along the path from... 

    Approximating Edit Distance

    , Ph.D. Dissertation Sharif University of Technology Safarnejad Boroujeni, Mahdi (Author) ; Ghodsi, Mohammd (Supervisor)
    Abstract
    Edit distance or Levenshtein distance is one of the most fundamental problems in computer science and engineering to measure the dissimilarity between strings.This problem is solvable in O(n^2) time using dynamic programming and in 2015 it was conditionally proven that no truly subquadratic time algorithm (\textit{i.e.}, O(n^{2-ε})) exists for edit distance.Since 2001, approximating edit distance within a constant factor was recognized as one of the biggest unsolved problems in the field of combinatorial pattern matching.This thesis designs seven approximation algorithms for edit distance and its related problems.Firstly, two quantum approximation algorithms are designed with constant...