Many emerging technologies for the next generation wireless network prefer
line-of-sight (LOS) propagation conditions to fully release their performance
advantages. This paper studies 3D unmanned aerial vehicle (UAV) placement to
establish LOS links for two ground terminals in deep shadow in a dense urban
environment. The challenge is that the LOS region for the feasible UAV
positions can be arbitrary due to the complicated structure of the environment.
While most existing works rely on simplified stochastic LOS models and problem
relaxations, this paper focuses on establishing theoretical guarantees for the
optimal UAV placement to ensure LOS conditions for two ground users in an
actual propagation environment. It is found that it suffices to search a
bounded 2D area for the globally optimal 3D UAV position. Thus, this paper
develops an exploration-exploitation algorithm with a linear trajectory length
and achieves above 99% global optimality over several real city environments
being tested in our experiments. To further enhance the search capability in an
ultra-dense environment, a dynamic multi-stage algorithm is developed and
theoretically shown to find an ϵ-optimal UAV position with a search
length O(1/ϵ). Significant performance advantages are demonstrated in
several numerical experiments for wireless communication relaying and wireless
power transfer